aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ipcalc.rsc
diff options
context:
space:
mode:
Diffstat (limited to 'mod/ipcalc.rsc')
-rw-r--r--mod/ipcalc.rsc6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/ipcalc.rsc b/mod/ipcalc.rsc
index 477cf4a..eacff6d 100644
--- a/mod/ipcalc.rsc
+++ b/mod/ipcalc.rsc
@@ -12,7 +12,7 @@
:global IPCalcReturn;
# print netmask, network, min host, max host and broadcast
-:set IPCalc do={ :do {
+:set IPCalc do={ :onerror Err {
:local Input [ :tostr $1 ];
:global FormatLine;
@@ -27,8 +27,8 @@
[ $FormatLine "HostMin" ($Values->"hostmin") ] . "\n" . \
[ $FormatLine "HostMax" ($Values->"hostmax") ] . "\n" . \
[ $FormatLine "Broadcast" ($Values->"broadcast") ]) ];
-} on-error={
- :global ExitError; $ExitError false $0;
+} do={
+ :global ExitError; $ExitError false $0 $Err;
} }
# calculate and return netmask, network, min host, max host and broadcast