summaryrefslogtreecommitdiff
path: root/core/hook.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/hook.c')
-rw-r--r--core/hook.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/hook.c b/core/hook.c
index b2f3a2e..9e90b2b 100644
--- a/core/hook.c
+++ b/core/hook.c
@@ -49,7 +49,7 @@ int
bop_shell_hook(const char *hook_path)
{
pid_t child;
- int status;
+ int status = 0;
if (hook_path == NULL) {
return -1;
@@ -62,5 +62,9 @@ bop_shell_hook(const char *hook_path)
waitpid(child, &status, 0);
}
- return 0;
+ if (status != 0) {
+ printf("error: failure in '%s'\n", hook_path);
+ }
+
+ return status;
}