[Pkg-gnupg-commit] [gnupg2] 14/112: gpgscm: Make error message more useful.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Aug 30 17:48:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 7207b2fe45bcf884e029366a2677a570234bed2e
Author: Justus Winter <justus at g10code.com>
Date: Thu Jul 21 18:04:57 2016 +0200
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 <justus at g10code.com>
---
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 0a76205..987f5af 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));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list