more helpful error message when failing to parse glibc abi.txt

This commit is contained in:
Andrew Kelley
2019-09-22 17:41:15 -04:00
parent 31b72da84a
commit a239c7439f
2 changed files with 19 additions and 4 deletions

View File

@@ -116,7 +116,7 @@ static void os_spawn_process_posix(ZigList<const char *> &args, Termination *ter
pid_t pid;
int rc = posix_spawnp(&pid, args.at(0), nullptr, nullptr, const_cast<char *const*>(argv), environ);
if (rc != 0) {
zig_panic("posix_spawn failed: %s", strerror(rc));
zig_panic("unable to spawn %s: %s", args.at(0), strerror(rc));
}
int status;