mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
fix bitrotted code in unexpected error tracing
This commit is contained in:
parent
c0a69a5075
commit
0b7b3190fd
@ -1690,7 +1690,7 @@ const unexpected_error_tracing = false;
|
||||
pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
|
||||
if (unexpected_error_tracing) {
|
||||
debug.warn("unexpected errno: {}\n", errno);
|
||||
debug.dumpStackTrace();
|
||||
debug.dumpCurrentStackTrace(null);
|
||||
}
|
||||
return error.Unexpected;
|
||||
}
|
||||
@ -1700,7 +1700,7 @@ pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
|
||||
pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) {
|
||||
if (unexpected_error_tracing) {
|
||||
debug.warn("unexpected GetLastError(): {}\n", err);
|
||||
debug.dumpStackTrace();
|
||||
debug.dumpCurrentStackTrace(null);
|
||||
}
|
||||
return error.Unexpected;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user