Skip to content

Commit af7cc28

Browse files
committed
Revert "builtin: implement TODO in panic_lasterr"
This reverts commit 54be41b.
1 parent 54be41b commit af7cc28

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎vlib/builtin/builtin_nix.c.v‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ fn break_if_debugger_attached() {
2121

2222
@[noreturn]
2323
pub fn panic_lasterr(base string) {
24-
cerrno := C.errno
25-
se := unsafe { tos_clone(&u8(C.strerror(cerrno))) }
2624
// TODO: use strerror_r and errno
27-
panic(base + se)
25+
panic(base + ' unknown')
2826
}

0 commit comments

Comments
 (0)