diff options
author | Justus Winter <[email protected]> | 2016-01-22 10:13:14 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-04-21 13:36:34 +0000 |
commit | f617570339d46b8465537b4cf7079f2c679595a7 (patch) | |
tree | 18f2a3c431dbab518d17ad0d8ab4ba36d3f4b79f | |
parent | tests/gpgscm: Fix error hook. (diff) | |
download | gnupg-f617570339d46b8465537b4cf7079f2c679595a7.tar.gz gnupg-f617570339d46b8465537b4cf7079f2c679595a7.zip |
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 <[email protected]>
-rw-r--r-- | tests/gpgscm/scheme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c index d6396a63b..2cd177449 100644 --- a/tests/gpgscm/scheme.c +++ b/tests/gpgscm/scheme.c @@ -2679,7 +2679,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 */ |