mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-20 17:05:44 +02:00
mod/bridge-port-vlan: use :onerror for outer block
This commit is contained in:
parent
02986eb77a
commit
d5141f43e5
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
:global BridgePortVlan;
|
||||
|
||||
:global BridgePortVlan do={ :do {
|
||||
:global BridgePortVlan do={ :onerror Err {
|
||||
:local ConfigTo [ :tostr $1 ];
|
||||
|
||||
:global IfThenElse;
|
||||
|
@ -74,6 +74,6 @@
|
|||
$LogPrint info $0 ("Re-enabling interfaces...");
|
||||
/interface/ethernet/enable $InterfaceReEnable;
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} do={
|
||||
:global ExitError; $ExitError false $0 $Err;
|
||||
} }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue