aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-07-11 14:07:39 +0000
committerJustus Winter <[email protected]>2017-07-13 10:00:55 +0000
commitba3164673676468472ae37f32c3964d231e8a8f8 (patch)
treea8255d6584ce51348e9c7d200e2bbf31fdb8d8bf
parentgpgscm: Limit the number of parallel jobs. (diff)
downloadlibgpg-error-ba3164673676468472ae37f32c3964d231e8a8f8.tar.gz
libgpg-error-ba3164673676468472ae37f32c3964d231e8a8f8.zip
gpgscm: Make it impossible to catch '*interpreter-exit*'.
* tests/gpgscm/init.scm (throw'): Make it impossible to catch '*interpreter-exit*'. This fixes 'exit' (and with it 'fail') inside 'catch' statements. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--init.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.scm b/init.scm
index b78a59e..66bec0f 100644
--- a/init.scm
+++ b/init.scm
@@ -605,12 +605,12 @@
;; This is used by the vm to throw exceptions.
(define (throw' message args history)
(cond
- ((more-handlers?)
- ((pop-handler) message args history))
((and args (list? args) (= 2 (length args))
(equal? *interpreter-exit* (car args)))
(*run-atexit-handlers*)
(quit (cadr args)))
+ ((more-handlers?)
+ ((pop-handler) message args history))
(else
(display message)
(when (and args (not (null? args)))