aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-07-23 01:24:45 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-07-23 01:24:45 +0200
commit9e389acba1074202ceb1a6f691a6a6ad6ef5d787 (patch)
tree741c1a5131a89b7a72f32a985febb3a62ddc822b /src/blogc-make
parent8fef8185237b1acb8e2f45b3ee46a1386e340e9d (diff)
downloadblogc-9e389acba1074202ceb1a6f691a6a6ad6ef5d787.tar.gz
blogc-9e389acba1074202ceb1a6f691a6a6ad6ef5d787.tar.bz2
blogc-9e389acba1074202ceb1a6f691a6a6ad6ef5d787.zip
make: exec: show stderr on errors, even on non-verbose mode
Diffstat (limited to 'src/blogc-make')
-rw-r--r--src/blogc-make/exec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/blogc-make/exec.c b/src/blogc-make/exec.c
index 425f728..dc4ee22 100644
--- a/src/blogc-make/exec.c
+++ b/src/blogc-make/exec.c
@@ -326,8 +326,11 @@ bm_exec_blogc(bm_ctx_t *ctx, bc_trie_t *variables, bool listing,
}
else {
fprintf(stderr,
- "blogc-make: error: Failed to execute command, returned "
- "status code: %d\n", rv);
+ "blogc-make: error: Failed to execute command (%d)", rv);
+ if (err != NULL) {
+ fprintf(stderr, ":\n%s", bc_str_strip(err));
+ }
+ fprintf(stderr, "\n");
}
}