global-config: :do ... on-error=... -> :onerror ... do=...

This commit is contained in:
Christian Hesse 2025-05-08 09:22:02 +02:00
parent b807fc9e90
commit a9e7bb0a05

View file

@ -277,11 +277,11 @@
# load custom settings from overlay and snippets # load custom settings from overlay and snippets
:foreach Script in=([ /system/script/find where name="global-config-overlay" ], \ :foreach Script in=([ /system/script/find where name="global-config-overlay" ], \
[ /system/script/find where name~"^global-config-overlay.d/" ]) do={ [ /system/script/find where name~"^global-config-overlay.d/" ]) do={
:do { :onerror Err {
/system/script/run $Script; /system/script/run $Script;
} on-error={ } do={
:log error ("Loading configuration from overlay or snippet " . \ :log error ("Loading configuration from overlay or snippet " . \
[ /system/script/get $Script name ] . " failed!"); [ /system/script/get $Script name ] . " failed: " . $Err);
} }
} }