diff options
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5fb553d6dd52..5511b27c9726 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -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"; |