[Pkg-gnupg-commit] [gnupg2] 92/132: gpgscm: Tweak error message display.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed May 17 03:07:45 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 78547bfe8a885579438a17abadca02b62cce2844
Author: Justus Winter <justus at g10code.com>
Date:   Thu Apr 20 17:38:43 2017 +0200

    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 at g10code.com>
---
 tests/gpgscm/init.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/gpgscm/init.scm b/tests/gpgscm/init.scm
index 87d3c88..af38620 100644
--- a/tests/gpgscm/init.scm
+++ b/tests/gpgscm/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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list