mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
global-config: :do ... on-error=... -> :onerror ... do=...
This commit is contained in:
parent
b807fc9e90
commit
a9e7bb0a05
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue