mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 11:50:07 +00:00
change error strings to an enumerated array in rodata; print_error takes a file argument
This commit is contained in:
@@ -233,7 +233,7 @@ _process_start :: proc(name: string, argv: []string, attr: ^Process_Attributes)
|
||||
}
|
||||
|
||||
if errno = linux.execveat(dir_fd, executable, &cargs[OUT], env); errno != .NONE {
|
||||
print_error(_get_platform_error(errno), string(executable))
|
||||
print_error(stderr, _get_platform_error(errno), string(executable))
|
||||
panic("execve failed to replace process")
|
||||
}
|
||||
unreachable()
|
||||
|
||||
Reference in New Issue
Block a user