diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-06 10:31:52 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | b7ce6aee71733a1e84b911a21c8868b8d2279c10 (patch) | |
tree | 1b766703cb489dee2450a91fd597ec6a845a6a6b | |
parent | da7a031081bcbb4c563bb8b56f7ee150c32b54c0 (diff) |
mode-button: use $ExitError to indicate unintentional error
-rw-r--r-- | mode-button.rsc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mode-button.rsc b/mode-button.rsc index 3bd922b..24de453 100644 --- a/mode-button.rsc +++ b/mode-button.rsc @@ -11,6 +11,7 @@ :global GlobalFunctionsReady; :while ($GlobalFunctionsReady != true) do={ :delay 500ms; } +:local ExitOK false; :do { :local ScriptName [ :jobname ]; @@ -83,4 +84,6 @@ $LogPrint debug $ScriptName ("Updating scheduler _ModeButtonScheduler..."); /system/scheduler/set $Scheduler start-time=[ /system/clock/get time ]; } -} on-error={ } +} on-error={ + :global ExitError; $ExitError $ExitOK [ :jobname ]; +} |