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;...@@ -1690,7 +1690,7 @@ const unexpected_error_tracing = false;
1690pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {1690pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
1691 if (unexpected_error_tracing) {1691 if (unexpected_error_tracing) {
1692 debug.warn("unexpected errno: {}\n", errno);1692 debug.warn("unexpected errno: {}\n", errno);
1693 debug.dumpStackTrace();1693 debug.dumpCurrentStackTrace(null);
1694 }1694 }
1695 return error.Unexpected;1695 return error.Unexpected;
1696}1696}
...@@ -1700,7 +1700,7 @@ pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {...@@ -1700,7 +1700,7 @@ pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) {
1700pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) {1700pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) {
1701 if (unexpected_error_tracing) {1701 if (unexpected_error_tracing) {
1702 debug.warn("unexpected GetLastError(): {}\n", err);1702 debug.warn("unexpected GetLastError(): {}\n", err);
1703 debug.dumpStackTrace();1703 debug.dumpCurrentStackTrace(null);
1704 }1704 }
1705 return error.Unexpected;1705 return error.Unexpected;
1706}1706}