Return Result from server main
This commit is contained in:
@@ -23,7 +23,12 @@ fn main() {
|
||||
}
|
||||
|
||||
#[cfg(feature = "server")]
|
||||
fn main() {
|
||||
fn main() -> std::process::ExitCode {
|
||||
tracing_setup();
|
||||
server::main()
|
||||
|
||||
if let Err(e) = server::main() {
|
||||
tracing::error!("Server main failed:\n{e}");
|
||||
}
|
||||
|
||||
std::process::ExitCode::FAILURE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user