mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
fix: log/print exit error of deltachat-rpc-server (#5601)
see also #5599 (this logs that error atleast, but does not fix it yet) --------- Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com>
This commit is contained in:
@@ -29,6 +29,9 @@ async fn main() {
|
|||||||
// "For technical reasons, stdin is implemented by using an ordinary blocking read on a separate
|
// "For technical reasons, stdin is implemented by using an ordinary blocking read on a separate
|
||||||
// thread, and it is impossible to cancel that read. This can make shutdown of the runtime hang
|
// thread, and it is impossible to cancel that read. This can make shutdown of the runtime hang
|
||||||
// until the user presses enter."
|
// until the user presses enter."
|
||||||
|
if let Err(error) = &r {
|
||||||
|
log::error!("Fatal error: {error:#}.")
|
||||||
|
}
|
||||||
std::process::exit(if r.is_ok() { 0 } else { 1 });
|
std::process::exit(if r.is_ok() { 0 } else { 1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user