aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/constr_CHOICE.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-22 13:47:59 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-08-22 13:47:59 +0000
commit758530a066ccc6414b36b7606ebac85c00d3c04c (patch)
tree0b97dab1afad50a95d7c1473954f1f21de0677e0 /skeletons/constr_CHOICE.c
parent7e20dfc61cc750e4d995eee4e427d0d4b478401e (diff)
better constraint failure reporting
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@196 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/constr_CHOICE.c')
-rw-r--r--skeletons/constr_CHOICE.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/skeletons/constr_CHOICE.c b/skeletons/constr_CHOICE.c
index 1f863feb..4ac71a64 100644
--- a/skeletons/constr_CHOICE.c
+++ b/skeletons/constr_CHOICE.c
@@ -481,7 +481,8 @@ CHOICE_constraint(asn1_TYPE_descriptor_t *td, const void *sptr,
if(!sptr) {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value not given", td->name);
+ "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}
@@ -515,7 +516,8 @@ CHOICE_constraint(asn1_TYPE_descriptor_t *td, const void *sptr,
}
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: no CHOICE element given", td->name);
+ "%s: no CHOICE element given",
+ td->name, __FILE__, __LINE__);
return -1;
}
}