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@g10code.com>
This commit is contained in:
Justus Winter 2016-01-22 11:13:14 +01:00
parent e02c1ccae1
commit 13bba13574
1 changed files with 1 additions and 1 deletions

View File

@ -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 */