diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-01 15:31:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-01 15:31:32 -0400 |
| commit | 639f0722f2507e875b02e206b4f53ef70f99d8bd (patch) | |
| tree | bcf5e4791070f7b2b112285fe6e607b64d85509b /src | |
| parent | 70611c0faaf436eaa01f6a6fd87d0637f74a2e4a (diff) | |
Show failed command
Diffstat (limited to 'src')
| -rw-r--r-- | src/tomo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |
