mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
* Some more diagnostics changes.
This commit is contained in:
parent
d051cd40e1
commit
05a5362d63
2 changed files with 41 additions and 25 deletions
|
@ -604,9 +604,9 @@ string statusToString(int status)
|
|||
{
|
||||
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
|
||||
if (WIFEXITED(status))
|
||||
return (format("failed with exit code %2%") % WEXITSTATUS(status)).str();
|
||||
return (format("failed with exit code %1%") % WEXITSTATUS(status)).str();
|
||||
else if (WIFSIGNALED(status))
|
||||
return (format("failed due to signal %2%") % WTERMSIG(status)).str();
|
||||
return (format("failed due to signal %1%") % WTERMSIG(status)).str();
|
||||
else
|
||||
return "died abnormally";
|
||||
} else return "succeeded";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue