ref: 883f80be8ee43308731a6827cf948f7929895ff8
parent: 0adb3e98860558ff5557eff7c39e614f781706b6
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Mar 11 06:21:08 EDT 2015
Improve error messages. Crashes/failures now stand out more.
--- a/util.myr
+++ b/util.myr
@@ -30,9 +30,9 @@
else
match std.wait(pid)
| `std.Wsuccess: /* nothing */
- | `std.Wfailure: std.fatal(1, "FAIL: %s\n", cmd[0])
- | `std.Wsignalled: std.fatal(1, "CRASH: %s\n", cmd[0])
- | `std.Waiterror: std.fatal(1, "WAT: %s\n", cmd[0])
+ | `std.Wfailure: std.fatal(1, "FAIL: \"%s\"\n", std.strjoin(cmd, " "))
+ | `std.Wsignalled: std.fatal(1, "CRASH: \"%s\"\n", std.strjoin(cmd, " "))
+ | `std.Waiterror: std.fatal(1, "WAT: \"%s\"\n", std.strjoin(cmd, " "))
;;
;;
}