diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:10:08 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 05cb87f475ffc3f9fdc1fa6988925e79a3dacd38 (patch) | |
tree | 66d2e487d6a34a7ba22672238850d9ac40ce347f /mod | |
parent | 495232b299bafadc4d21551f094c3c42fa090f57 (diff) |
mod/inspectvar: $InspectVar: use $ExitError to indicate unintentional error
Diffstat (limited to 'mod')
-rw-r--r-- | mod/inspectvar.rsc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/inspectvar.rsc b/mod/inspectvar.rsc index 73205b2..0209214 100644 --- a/mod/inspectvar.rsc +++ b/mod/inspectvar.rsc @@ -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={ |