diff options
author | Christian Hesse <mail@eworm.de> | 2024-12-09 09:13:18 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2024-12-09 11:49:50 +0100 |
commit | 519cb85e28e52c476ecb210e1ed201f64190f898 (patch) | |
tree | 0f64567c8631c4569c1ea62409f1f991b3039bc6 /mod/inspectvar.rsc | |
parent | e51191035b21c529efb4387dfe59976c3112f561 (diff) | |
parent | 210ef26b93364f4b69cde9ff34139d51572357ee (diff) |
Merge branch 'func-exit-error' into next
Diffstat (limited to 'mod/inspectvar.rsc')
-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={ |