| ... | @@ -1690,7 +1690,7 @@ const unexpected_error_tracing = false; | ... | @@ -1690,7 +1690,7 @@ const unexpected_error_tracing = false; |
| 1690 | pub fn unexpectedErrorPosix(errno: usize) (error{Unexpected}) { | 1690 | pub 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}) { |
| 1700 | pub fn unexpectedErrorWindows(err: windows.DWORD) (error{Unexpected}) { | 1700 | pub 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 | } |