From e8f95e5183c34809d991eacb546fff26400afb4a Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 24 Jun 2017 13:12:41 +0000 Subject: PROGRAMMING: Document error handling in parallel runs Signed-off-by: Niels Thykier --- doc/PROGRAMMING | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING index 5d1b6220..43f68c61 100644 --- a/doc/PROGRAMMING +++ b/doc/PROGRAMMING @@ -377,6 +377,10 @@ on_selected_pkgs_in_parallel($pkg_list_ref, $code) } }); + If there is an error, which should stop the build, please invoke + either "error()" or "error_exitcode". Alternatively, a trappable + error (e.g. "die($msg)") can also be used. + Keep in mind that the sub will always be run in a subprocess, so it cannot update global state. -- cgit v1.2.3