Skip to content

Commit

Permalink
error on invalid toml
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev committed Dec 7, 2023
1 parent c76c763 commit 97256b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Config {
fn load() -> Self {
std::fs::read_to_string(Self::SETTINGS_TOML).map_or_else(
|_| Self::default(),
|contents| toml::from_str(&contents).unwrap_or_default(),
|contents| toml::from_str(&contents).unwrap(),
)
}

Expand Down

0 comments on commit 97256b2

Please sign in to comment.