mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 00:40:26 +00:00
parent
daea91044c
commit
347721ae40
@ -1085,7 +1085,8 @@ static Janet os_execute_impl(int32_t argc, Janet *argv, int is_spawn) {
|
|||||||
|
|
||||||
os_execute_cleanup(envp, child_argv);
|
os_execute_cleanup(envp, child_argv);
|
||||||
if (status) {
|
if (status) {
|
||||||
janet_panicf("%p: %s", argv[0], strerror(errno));
|
/* correct for macos bug where errno is not set */
|
||||||
|
janet_panicf("%p: %s", argv[0], strerror(errno ? errno : ENOENT));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user