This commit is contained in:
Jun Kurihara 2022-07-19 17:48:44 +09:00
commit 2ee82c696d
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 5 additions and 2 deletions

View file

@ -32,7 +32,7 @@ pub fn parse_opts(globals: &mut Globals) -> Result<()> {
ConfigToml::default()
};
// listen port and scket
// listen port and socket
globals.http_port = config.listen_port;
globals.https_port = config.listen_port_tls;
ensure!(

View file

@ -78,7 +78,10 @@ fn main() {
},
};
parse_opts(&mut globals).expect("Invalid configuration");
if let Err(e) = parse_opts(&mut globals) {
error!("Invalid configuration: {}", e);
std::process::exit(1);
};
entrypoint(Arc::new(globals)).await.unwrap()
});