Skip to content

Commit

Permalink
Return the modified Settings rather than the default one if there's a…
Browse files Browse the repository at this point in the history
… parse error
  • Loading branch information
Marko19907 committed Jul 16, 2024
1 parent ea4c5dc commit c6df7f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ impl SettingsManager {

return Err((
errors.join("\n"),
SettingsManager::default(),
SettingsManager {
settings: Arc::new(Mutex::new(settings)),
}
));
}

Expand Down

0 comments on commit c6df7f1

Please sign in to comment.