mod/scriptrunonce: :do ... on-error=... -> :onerror ... do=...

This commit is contained in:
Christian Hesse 2025-05-08 10:02:15 +02:00
parent 314e68e4cd
commit 9ae21c00bd

View file

@ -41,11 +41,11 @@
:return false; :return false;
} }
:do { :onerror Err {
$LogPrint info $0 ("Running script '" . $Script . "' now."); $LogPrint info $0 ("Running script '" . $Script . "' now.");
[ :parse $Source ]; [ :parse $Source ];
} on-error={ } do={
$LogPrint warning $0 ("The script '" . $Script . "' failed to run!"); $LogPrint warning $0 ("The script '" . $Script . "' failed to run: " . $Err);
:return false; :return false;
} }