aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/program/hook.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_core/src/program/hook.rs')
-rw-r--r--mingling_core/src/program/hook.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/mingling_core/src/program/hook.rs b/mingling_core/src/program/hook.rs
index edbf996..a5c5d38 100644
--- a/mingling_core/src/program/hook.rs
+++ b/mingling_core/src/program/hook.rs
@@ -215,7 +215,10 @@ where
}
for anonymous_hook in &self.anonymous_hooks {
if let Some(finish) = anonymous_hook.finish {
- finish();
+ exit_code = finish();
+ if exit_code != 0 {
+ return exit_code;
+ }
}
}
exit_code