diff --git a/native/src/base/logging.rs b/native/src/base/logging.rs index 28465cc82..a44736879 100644 --- a/native/src/base/logging.rs +++ b/native/src/base/logging.rs @@ -84,7 +84,7 @@ fn log_with_writer(level: LogLevel, f: F) { } f(logger.write); if matches!(level, LogLevel::ErrorCxx) && (logger.flags & LogFlag::ExitOnError) != 0 { - exit(1); + exit(-1); } }