backup-partition: use :onerror for outer block

This commit is contained in:
Christian Hesse 2025-05-06 09:44:23 +02:00
parent 953daca8ac
commit 34c052c5f1

View file

@ -14,7 +14,7 @@
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
:local ExitOK false;
:do {
:onerror Err {
:local ScriptName [ :jobname ];
:global BackupPartitionCopyBeforeFeatureUpdate;
@ -121,6 +121,6 @@
:set ExitOK true;
:error false;
}
} on-error={
:global ExitError; $ExitError $ExitOK [ :jobname ];
} do={
:global ExitError; $ExitError $ExitOK [ :jobname ] $Err;
}