Server panics when no config file is found

Can't do anything useful without config at this point, so we
might as well panic rather than confuse people. Minor cleanup of
config.
This commit is contained in:
Ignotus Peverell
2018-05-22 18:50:09 +01:00
parent 7281dc9473
commit 90746537a3
2 changed files with 6 additions and 12 deletions
+1 -4
View File
@@ -378,10 +378,7 @@ fn server_command(server_args: Option<&ArgMatches>, mut global_config: GlobalCon
.chain_type,
);
} else {
info!(
LOGGER,
"Starting the Grin server (no configuration file) ..."
);
panic!("No configuration found.");
}
// just get defaults from the global config