Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
fangpenlin committed Jan 7, 2025
1 parent e020577 commit 84d5b36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ fn load_config(config_file: &str) -> Option<Config> {
let config = Config::read(&config_file);
if let Err(error) = &config {
log::warn!("Failed to load config: {error}");
// TODO: keep reading if encounter "No such device (os error 19)"?
// this means file system not formatted.
// maybe if the user formatted and put a config file into the folder, we should
// make it connects to their wifi and API immediately?
}
let config = config.ok();
if let Some(config) = &config {
Expand Down

0 comments on commit 84d5b36

Please sign in to comment.