aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/scheme.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-21 16:04:57 +0000
committerJustus Winter <[email protected]>2016-07-21 16:04:57 +0000
commit7207b2fe45bcf884e029366a2677a570234bed2e (patch)
treeb14706cbb4f85456698994e4c17f8d5b72a134c7 /tests/gpgscm/scheme.c
parentg10: Fix crash. (diff)
downloadgnupg-7207b2fe45bcf884e029366a2677a570234bed2e.tar.gz
gnupg-7207b2fe45bcf884e029366a2677a570234bed2e.zip
gpgscm: Make error message more useful.
* tests/gpgscm/scheme.c (opexe_0): Include names of missing function parameters in the error message. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--tests/gpgscm/scheme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 0a7620521..987f5af7d 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -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));
}