aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-04-20 15:38:43 +0000
committerJustus Winter <[email protected]>2017-04-24 14:00:51 +0000
commite8c896c7f9aabad6e1387f538accb54ac6b2b1cc (patch)
treeff1a6eb92857982c37fbc8acf84bf8124981503f
parentgpgscm: Fix test. (diff)
downloadlibgpg-error-e8c896c7f9aabad6e1387f538accb54ac6b2b1cc.tar.gz
libgpg-error-e8c896c7f9aabad6e1387f538accb54ac6b2b1cc.zip
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 <[email protected]>
-rw-r--r--init.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/init.scm b/init.scm
index 87d3c88..af38620 100644
--- a/init.scm
+++ b/init.scm
@@ -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)