aboutsummaryrefslogtreecommitdiffstats
path: root/hello-world.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'hello-world.rsc')
-rw-r--r--hello-world.rsc5
1 files changed, 4 insertions, 1 deletions
diff --git a/hello-world.rsc b/hello-world.rsc
index e3ebf8a..2064bfd 100644
--- a/hello-world.rsc
+++ b/hello-world.rsc
@@ -9,6 +9,7 @@
:global GlobalFunctionsReady;
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
+:local ExitOK false;
:do {
:local ScriptName [ :jobname ];
@@ -21,4 +22,6 @@
} else={
$SendNotification2 ({ origin=$ScriptName; subject="Hello..."; message="... world!" });
}
-} on-error={ }
+} on-error={
+ :global ExitError; $ExitError $ExitOK [ :jobname ];
+}