| ... | ... | @@ -2077,7 +2077,7 @@ pub fn unexpectedError(err: Win32Error) std.os.UnexpectedError { |
| 2077 | 2077 | ); |
| 2078 | 2078 | _ = std.unicode.utf16leToUtf8(&buf_utf8, buf_wstr[0..len]) catch unreachable; |
| 2079 | 2079 | std.debug.print("error.Unexpected: GetLastError({}): {s}\n", .{ @enumToInt(err), buf_utf8[0..len] }); |
| 2080 | | std.debug.dumpCurrentStackTrace(null); |
| 2080 | std.debug.dumpCurrentStackTrace(@returnAddress()); |
| 2081 | 2081 | } |
| 2082 | 2082 | return error.Unexpected; |
| 2083 | 2083 | } |
| ... | ... | @@ -2091,7 +2091,7 @@ pub fn unexpectedWSAError(err: ws2_32.WinsockError) std.os.UnexpectedError { |
| 2091 | 2091 | pub fn unexpectedStatus(status: NTSTATUS) std.os.UnexpectedError { |
| 2092 | 2092 | if (std.os.unexpected_error_tracing) { |
| 2093 | 2093 | std.debug.print("error.Unexpected NTSTATUS=0x{x}\n", .{@enumToInt(status)}); |
| 2094 | | std.debug.dumpCurrentStackTrace(null); |
| 2094 | std.debug.dumpCurrentStackTrace(@returnAddress()); |
| 2095 | 2095 | } |
| 2096 | 2096 | return error.Unexpected; |
| 2097 | 2097 | } |