1
0
Fork 0
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:
Eelco Dolstra 2004-06-22 17:04:10 +00:00
parent d051cd40e1
commit 05a5362d63
2 changed files with 41 additions and 25 deletions

View file

@ -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";