authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-03-27 10:43:51-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-03-27 10:44:13-04:00
log0b7b3190fd1121aa4e349740cff1faf213c94411
treefc5990842f68e1f184dceca9a3ff3321051844e4
parentc0a69a50755b4364e18726b06cbc193d208b131d

fix bitrotted code in unexpected error tracing


1 files changed, 2 insertions(+), 2 deletions(-)

std/os/index.zig+2-2
......@@ -1690,7 +1690,7 @@ const unexpected_error_tracing = false;
16901690pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
16911691 if (unexpected_error_tracing) {
16921692 debug.warn("unexpected errno: {}\n", errno);
1693 debug.dumpStackTrace();
1693 debug.dumpCurrentStackTrace(null);
16941694 }
16951695 return error.Unexpected;
16961696}
......@@ -1700,7 +1700,7 @@ pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
17001700pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) {
17011701 if (unexpected_error_tracing) {
17021702 debug.warn("unexpected GetLastError(): {}\n", err);
1703 debug.dumpStackTrace();
1703 debug.dumpCurrentStackTrace(null);
17041704 }
17051705 return error.Unexpected;
17061706}