We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4cc0f4 commit 54be41bCopy full SHA for 54be41b
1 file changed
vlib/builtin/builtin_nix.c.v
@@ -21,6 +21,8 @@ fn break_if_debugger_attached() {
21
22
@[noreturn]
23
pub fn panic_lasterr(base string) {
24
+ cerrno := C.errno
25
+ se := unsafe { tos_clone(&u8(C.strerror(cerrno))) }
26
// TODO: use strerror_r and errno
- panic(base + ' unknown')
27
+ panic(base + se)
28
}
0 commit comments