gpgscm: Tweak error message display.

* tests/gpgscm/init.scm (throw'): If the first argument to the error
is a string, display it as such.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-04-20 17:38:43 +02:00
parent 06a177ceea
commit 78547bfe8a
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020
1 changed files with 7 additions and 2 deletions

View File

@ -613,8 +613,13 @@
(quit (cadr args)))
(else
(display message)
(if args (begin
(display ": ")
(when (and args (not (null? args)))
(display ": ")
(if (string? (car args))
(begin (display (car args))
(unless (null? (cdr args))
(newline)
(write (cdr args))))
(write args)))
(newline)
(vm-history-print history)