[Pkg-gnupg-commit] [gnupg2] 11/160: tests/gpgscm: Nicer error message.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 15 09:36:31 UTC 2016


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

dkg pushed a commit to branch upstream
in repository gnupg2.

commit 13bba1357478815a85f5c0db3607ebb6cd574f56
Author: Justus Winter <justus at g10code.com>
Date:   Fri Jan 22 11:13:14 2016 +0100

    tests/gpgscm: Nicer error message.
    
    * tests/gpgscm/scheme.c (opexe_0): Include the value that we tried to
    evaluate as function-like in the error message.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpgscm/scheme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 220eed3..fba1071 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -2683,7 +2683,7 @@ static pointer opexe_0(scheme *sc, enum scheme_opcodes op) {
                sc->dump = cont_dump(sc->code);
                s_return(sc,sc->args != sc->NIL ? car(sc->args) : sc->NIL);
           } else {
-               Error_0(sc,"illegal function");
+               Error_1(sc,"illegal function",sc->code);
           }
 
      case OP_DOMACRO:    /* do macro */

-- 
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