summaryrefslogtreecommitdiffstats
path: root/format.c
diff options
context:
space:
mode:
authornicm <nicm>2015-05-29 23:26:52 +0000
committernicm <nicm>2015-05-29 23:26:52 +0000
commit2a8c2648f0375994715b2fea9de144b15c9588a2 (patch)
treefc300e7233b3430757e3c3b5a836e8e7552d50de /format.c
parent74c755f2aba6402f9ec51fc6b4b61560884af46d (diff)
Don't use special strings if #() commands fail, just remove the format
(as if the command produced nothing). Makes constructions that can fail like '#(test whatever && echo foo)' work as they did before.
Diffstat (limited to 'format.c')
-rw-r--r--format.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/format.c b/format.c
index a1165de6..72d6bfc9 100644
--- a/format.c
+++ b/format.c
@@ -175,17 +175,6 @@ format_job_callback(struct job *job)
fj->job = NULL;
free(fj->out);
- if (WIFEXITED(job->status) && WEXITSTATUS(job->status) != 0) {
- xasprintf(&fj->out, "<'%s' exited with %d>", fj->cmd,
- WEXITSTATUS(job->status));
- return;
- }
- if (WIFSIGNALED(job->status)) {
- xasprintf(&fj->out, "<'%s' got signal %d>", fj->cmd,
- WTERMSIG(job->status));
- return;
- }
-
buf = NULL;
if ((line = evbuffer_readline(job->event->input)) == NULL) {
len = EVBUFFER_LENGTH(job->event->input);