From 13bba1357478815a85f5c0db3607ebb6cd574f56 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 22 Jan 2016 11:13:14 +0100 Subject: [PATCH] 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 --- 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 220eed3d9..fba107131 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 */