From 639f0722f2507e875b02e206b4f53ef70f99d8bd Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 1 May 2025 15:31:32 -0400 Subject: Show failed command --- src/tomo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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") -- cgit v1.2.3