gpgscm: Make error message more useful.
authorJustus Winter <justus@g10code.com>
Thu, 21 Jul 2016 16:04:57 +0000 (18:04 +0200)
committerJustus Winter <justus@g10code.com>
Thu, 21 Jul 2016 16:04:57 +0000 (18:04 +0200)
* tests/gpgscm/scheme.c (opexe_0): Include names of missing function
parameters in the error message.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/scheme.c

index 0a76205..987f5af 100644 (file)
@@ -2743,7 +2743,7 @@ static pointer opexe_0(scheme *sc, enum scheme_opcodes op) {
                for (x = car(closure_code(sc->code)), y = sc->args;
                     is_pair(x); x = cdr(x), y = cdr(y)) {
                     if (y == sc->NIL) {
-                         Error_0(sc,"not enough arguments");
+                         Error_1(sc, "not enough arguments, missing:", x);
                     } else {
                          new_slot_in_env(sc, car(x), car(y));
                     }