aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-09 09:10:44 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commit73e0ac75f10019794a2692371ca08a46bea69eb9 (patch)
tree281c012ef7163be285d878861be7b8539f1f04ed
parent4968b79fc1142c9bfdbfe93c8f917cfdd7f51790 (diff)
mod/scriptrunonce: $ScriptRunOnce: use $ExitError to indicate unintentional error
-rw-r--r--mod/scriptrunonce.rsc6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/scriptrunonce.rsc b/mod/scriptrunonce.rsc
index 3d5dce9..c8dcf26 100644
--- a/mod/scriptrunonce.rsc
+++ b/mod/scriptrunonce.rsc
@@ -11,7 +11,7 @@
:global ScriptRunOnce;
# fetch and run script(s) once
-:set ScriptRunOnce do={
+:set ScriptRunOnce do={ :do {
:local Scripts [ :toarray $1 ];
:global ScriptRunOnceBaseUrl;
@@ -49,4 +49,6 @@
}
}
}
-}
+} on-error={
+ :global ExitError; $ExitError false $0;
+} }