Skip to content

Commit

Permalink
Merge pull request #27 from MikeWalrus/master
Browse files Browse the repository at this point in the history
fix: panic when the default config file doesn't exist
  • Loading branch information
roosta authored Mar 15, 2022
2 parents d9aaaad + c5a829f commit bac24da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn main() -> Result<(), ExitFailure> {
Ok(Config {icons: i3wsr::icons::get_icons(icons), ..Default::default()})
}
}
}.context(format!("Could not parse config file:\n {:?}", config_path_used.unwrap()))?;
}.with_context(|_|format!("Could not parse config file:\n {:?}", config_path_used.unwrap()))?;

if no_icon_names {
config.options.insert("no_icon_names".to_string(), no_icon_names);
Expand Down

0 comments on commit bac24da

Please sign in to comment.