mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-03-30 07:32:16 +00:00
set exit code of log ExitOnError to -1
This commit is contained in:
parent
27fd79176a
commit
e8a3bf82c6
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user