gpgscm: Make exception handling more robust.

* tests/gpgscm/init.scm (throw'): Check that args is a list.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-12-19 15:25:52 +01:00
parent 026bbf0d5e
commit df00745d6e
1 changed files with 2 additions and 1 deletions

View File

@ -597,7 +597,8 @@
(cond
((more-handlers?)
((pop-handler) message args history))
((and args (= 2 (length args)) (equal? *interpreter-exit* (car args)))
((and args (list? args) (= 2 (length args))
(equal? *interpreter-exit* (car args)))
(*run-atexit-handlers*)
(quit (cadr args)))
(else