aboutsummaryrefslogtreecommitdiff
path: root/src/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-01 15:31:32 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-01 15:31:32 -0400
commit639f0722f2507e875b02e206b4f53ef70f99d8bd (patch)
treebcf5e4791070f7b2b112285fe6e607b64d85509b /src/tomo.c
parent70611c0faaf436eaa01f6a6fd87d0637f74a2e4a (diff)
Show failed command
Diffstat (limited to 'src/tomo.c')
-rw-r--r--src/tomo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tomo.c b/src/tomo.c
index 88fe4dda..7b68e016 100644
--- a/src/tomo.c
+++ b/src/tomo.c
@@ -28,7 +28,7 @@
#include "types.h"
#define run_cmd(...) ({ const char *_cmd = String(__VA_ARGS__); if (verbose) print("\033[34;1m", _cmd, "\033[m"); popen(_cmd, "w"); })
-#define xsystem(...) ({ int _status = system(String(__VA_ARGS__)); if (!WIFEXITED(_status) || WEXITSTATUS(_status) != 0) errx(1, "Failed to run command: ", String(__VA_ARGS__)); })
+#define xsystem(...) ({ int _status = system(String(__VA_ARGS__)); if (!WIFEXITED(_status) || WEXITSTATUS(_status) != 0) errx(1, "Failed to run command: %s", String(__VA_ARGS__)); })
#define list_text(list) Text$join(Text(" "), list)
#define whisper(...) print("\033[2m", __VA_ARGS__, "\033[m")