Skip to content

Commit 84d5b36

Browse files
committedJan 7, 2025·
Add todo
1 parent e020577 commit 84d5b36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/main.rs

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ fn load_config(config_file: &str) -> Option<Config> {
4040
let config = Config::read(&config_file);
4141
if let Err(error) = &config {
4242
log::warn!("Failed to load config: {error}");
43+
// TODO: keep reading if encounter "No such device (os error 19)"?
44+
// this means file system not formatted.
45+
// maybe if the user formatted and put a config file into the folder, we should
46+
// make it connects to their wifi and API immediately?
4347
}
4448
let config = config.ok();
4549
if let Some(config) = &config {

0 commit comments

Comments
 (0)
Please sign in to comment.