Function unexpectedErrno [src]
Call this when you made a syscall or something that sets errno
and you get an unexpected error.
Prototype
pub fn unexpectedErrno(err: E) UnexpectedError
Parameters
err: E
Source
pub fn unexpectedErrno(err: E) UnexpectedError {
if (unexpected_error_tracing) {
std.debug.print("unexpected errno: {d}\n", .{@intFromEnum(err)});
std.debug.dumpCurrentStackTrace(null);
}
return error.Unexpected;
}