Skip to content

Commit

Permalink
fix: log/print exit error of deltachat-rpc-server (#5601)
Browse files Browse the repository at this point in the history
see also #5599 (this logs that error atleast, but does not fix it yet)

---------

Co-authored-by: iequidoo <117991069+iequidoo@users.noreply.github.com>
  • Loading branch information
Simon-Laux and iequidoo committed May 20, 2024
1 parent b32fb05 commit dd77d32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deltachat-rpc-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ async fn main() {
// "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
// 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 });
}

Expand Down

0 comments on commit dd77d32

Please sign in to comment.