mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional error
This commit is contained in:
parent
495232b299
commit
05cb87f475
1 changed files with 4 additions and 2 deletions
|
@ -12,11 +12,13 @@
|
|||
:global InspectVarReturn;
|
||||
|
||||
# inspect variable and print on terminal
|
||||
:set InspectVar do={
|
||||
:set InspectVar do={ :do {
|
||||
:global InspectVarReturn;
|
||||
|
||||
:put [ :tocrlf [ $InspectVarReturn $1 ] ];
|
||||
}
|
||||
} on-error={
|
||||
:global ExitError; $ExitError false $0;
|
||||
} }
|
||||
|
||||
# inspect variable and return formatted string
|
||||
:set InspectVarReturn do={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue