aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-12-09 09:09:05 +0100
committerGravatar Christian Hesse <mail@eworm.de>2024-12-09 11:49:50 +0100
commit5db686a15ccd21ed3a190cd4c9eea0bcc6e56abd (patch)
tree4c5ad6bd653c742c6a14f5bac596faac4857c128 /mod
parent1fe90a6e9aeaba7350f13f52cc9a196a0bc8ca1c (diff)
mod/bridge-port-to: $BridgePortTo: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod')
-rw-r--r--mod/bridge-port-to.rsc6
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;
+} }