diff options
author | Justus Winter <justus@g10code.com> | 2017-04-20 17:38:43 +0200 |
---|---|---|
committer | Justus Winter <justus@g10code.com> | 2017-04-24 16:00:51 +0200 |
commit | e8c896c7f9aabad6e1387f538accb54ac6b2b1cc (patch) | |
tree | ff1a6eb92857982c37fbc8acf84bf8124981503f | |
parent | b67d1a3f36f2b15fb75de613942668b71cad1bd7 (diff) | |
download | libgpg-error-e8c896c7f9aabad6e1387f538accb54ac6b2b1cc.tar.gz |
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>
-rw-r--r-- | init.scm | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |