mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
Add error for EBADARCH
That's apparently errno 86 on macOS, and it's triggered when the architecture is wrong. I'll leave other macOS errors to the macOS users. See #9052.
This commit is contained in:
parent
d920610f96
commit
60f87ef3be
1 changed files with 8 additions and 0 deletions
|
@ -543,6 +543,14 @@ void safe_report_exec_error(int err, const char *actual_cmd, const char *const *
|
|||
actual_cmd);
|
||||
break;
|
||||
}
|
||||
#ifdef EBADARCH
|
||||
case EBADARCH: {
|
||||
FLOGF_SAFE(exec,
|
||||
"Failed to execute process '%s': Bad CPU type in executable.",
|
||||
actual_cmd);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default: {
|
||||
char errnum_buff[64];
|
||||
format_long_safe(errnum_buff, err);
|
||||
|
|
Loading…
Reference in a new issue