We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed7061b commit 186632dCopy full SHA for 186632d
ldk-server/src/main.rs
@@ -64,7 +64,13 @@ fn main() {
64
}
65
66
let mut ldk_node_config = Config::default();
67
- let config_file = load_config(Path::new(arg)).expect("Invalid configuration file.");
+ let config_file = match load_config(Path::new(arg)) {
68
+ Ok(config) => config,
69
+ Err(e) => {
70
+ eprintln!("Invalid configuration file: {}", e);
71
+ std::process::exit(-1);
72
+ },
73
+ };
74
75
ldk_node_config.storage_dir_path = config_file.storage_dir_path.clone();
76
ldk_node_config.listening_addresses = Some(vec![config_file.listening_addr]);
0 commit comments