diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:09:05 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 5db686a15ccd21ed3a190cd4c9eea0bcc6e56abd (patch) | |
tree | 4c5ad6bd653c742c6a14f5bac596faac4857c128 /mod/bridge-port-to.rsc | |
parent | 1fe90a6e9aeaba7350f13f52cc9a196a0bc8ca1c (diff) |
mod/bridge-port-to: $BridgePortTo: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod/bridge-port-to.rsc')
-rw-r--r-- | mod/bridge-port-to.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/bridge-port-to.rsc b/mod/bridge-port-to.rsc index 7dae679..9e7b911 100644 --- a/mod/bridge-port-to.rsc +++ b/mod/bridge-port-to.rsc @@ -10,7 +10,7 @@ :global BridgePortTo; -:set BridgePortTo do={ +:set BridgePortTo do={ :do { :local BridgePortTo [ :tostr $1 ]; :global IfThenElse; @@ -65,4 +65,6 @@ $LogPrint info $0 ("Re-enabling interfaces..."); /interface/ethernet/enable $InterfaceReEnable; } -} +} on-error={ + :global ExitError; $ExitError false $0; +} } |