aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main.rs b/src/main.rs
index e9ff12d5..42aa9449 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -71,16 +71,8 @@ fn load_config(options: &cli::Options) -> Config {
});
Config::load_from(&*config_path).unwrap_or_else(|err| {
- match err {
- config::Error::NotFound => {
- die!("Config file not found at: {}", config_path.display());
- },
- config::Error::Empty => {
- eprintln!("Empty config; Loading defaults");
- Config::default()
- },
- _ => die!("{}", err),
- }
+ eprintln!("Error: {}; Loading default config", err);
+ Config::default()
})
}