zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 0b7b3190fd1121aa4e349740cff1faf213c94411 (tree)
parent c0a69a50755b4364e18726b06cbc193d208b131d
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Tue, 27 Mar 2018 10:43:51 -0400

fix bitrotted code in unexpected error tracing

Diffstat:
Mstd/os/index.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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; }