Skip to content

Commit bac24da

Browse files
authored
Merge pull request #27 from MikeWalrus/master
fix: panic when the default config file doesn't exist
2 parents d9aaaad + c5a829f commit bac24da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn main() -> Result<(), ExitFailure> {
8787
Ok(Config {icons: i3wsr::icons::get_icons(icons), ..Default::default()})
8888
}
8989
}
90-
}.context(format!("Could not parse config file:\n {:?}", config_path_used.unwrap()))?;
90+
}.with_context(|_|format!("Could not parse config file:\n {:?}", config_path_used.unwrap()))?;
9191

9292
if no_icon_names {
9393
config.options.insert("no_icon_names".to_string(), no_icon_names);

0 commit comments

Comments
 (0)