Skip to content

Commit

Permalink
fix bitrotted code in unexpected error tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Mar 27, 2018
1 parent c0a69a5 commit 0b7b319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions std/os/index.zig
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 0b7b319

Please sign in to comment.