diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:09:48 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 495232b299bafadc4d21551f094c3c42fa090f57 (patch) | |
tree | 02bee4adc35b7011b78653a891598e4c29e1bd7d | |
parent | 5db686a15ccd21ed3a190cd4c9eea0bcc6e56abd (diff) |
mod/bridge-port-vlan: $BridgePortVlan: use $ExitError to indicate unintentional error
-rw-r--r-- | mod/bridge-port-vlan.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/bridge-port-vlan.rsc b/mod/bridge-port-vlan.rsc index c9f55ae..18fa2db 100644 --- a/mod/bridge-port-vlan.rsc +++ b/mod/bridge-port-vlan.rsc @@ -10,7 +10,7 @@ :global BridgePortVlan; -:global BridgePortVlan do={ +:global BridgePortVlan do={ :do { :local ConfigTo [ :tostr $1 ]; :global IfThenElse; @@ -74,4 +74,6 @@ $LogPrint info $0 ("Re-enabling interfaces..."); /interface/ethernet/enable $InterfaceReEnable; } -} +} on-error={ + :global ExitError; $ExitError false $0; +} } |