about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-06-22T17·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-06-22T17·04+0000
commit05a5362d63dd2fc85bb74321244fc0e94689a4bf (patch)
tree352df2bc99842b69248ce4515f49013ca07a7210 /src/libutil/util.cc
parentd051cd40e16119ed441276f5b2cb74b7983062c3 (diff)
* Some more diagnostics changes.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc4
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";