better constraint failure reporting
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@196 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/NumericString.c b/skeletons/NumericString.c
index 6c8729f..aba1c72 100644
--- a/skeletons/NumericString.c
+++ b/skeletons/NumericString.c
@@ -48,17 +48,18 @@
continue;
}
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value byte %d "
- "not in NumericString alphabet (%d)",
+ "%s: value byte %d (%d) "
+ "not in NumericString alphabet (%s:%d)",
td->name,
(buf - st->buf) + 1,
- *buf
- );
+ *buf,
+ __FILE__, __LINE__);
return -1;
}
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: value not given", td->name);
+ "%s: value not given (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}