diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-27 10:43:51 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-27 10:44:13 -0400 |
| commit | 0b7b3190fd1121aa4e349740cff1faf213c94411 (patch) | |
| tree | fc5990842f68e1f184dceca9a3ff3321051844e4 /std/os | |
| parent | c0a69a50755b4364e18726b06cbc193d208b131d (diff) | |
| download | zig-0b7b3190fd1121aa4e349740cff1faf213c94411.tar.gz zig-0b7b3190fd1121aa4e349740cff1faf213c94411.zip | |
fix bitrotted code in unexpected error tracing
Diffstat (limited to 'std/os')
| -rw-r--r-- | std/os/index.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/os/index.zig b/std/os/index.zig index e472908c68..09409d6d36 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -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; } |
