diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-09 17:48:03 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-09 17:48:03 +0800 |
| commit | 99d5a62aa3655f8676021a9bf70af3d12c9457bc (patch) | |
| tree | 83349003584863fc4b9dbe5471da02fad55b6a74 /mingling_core/src/program/hook.rs | |
| parent | 842d330308b2abe44978a0acefe8e36a0a98376d (diff) | |
Capture exit codes from anonymous hook finishes
Diffstat (limited to 'mingling_core/src/program/hook.rs')
| -rw-r--r-- | mingling_core/src/program/hook.rs | 5 |
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 |
