mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-23 01:17:28 +00:00
set exit code of log ExitOnError to -1
This commit is contained in:
@@ -84,7 +84,7 @@ fn log_with_writer<F: FnOnce(LogWriter)>(level: LogLevel, f: F) {
|
||||
}
|
||||
f(logger.write);
|
||||
if matches!(level, LogLevel::ErrorCxx) && (logger.flags & LogFlag::ExitOnError) != 0 {
|
||||
exit(1);
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user