better constraint failure reporting
diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR
index a934fff..ad954aa 100644
--- a/tests/42-real-life-OK.asn1.-PR
+++ b/tests/42-real-life-OK.asn1.-PR
@@ -40,7 +40,8 @@
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;
}
@@ -55,7 +56,8 @@
return 0;
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: constraint failed", td->name);
+ "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}
}
@@ -187,7 +189,8 @@
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;
}
@@ -347,7 +350,8 @@
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;
}
@@ -362,7 +366,8 @@
return 0;
} else {
_ASN_ERRLOG(app_errlog, app_key,
- "%s: constraint failed", td->name);
+ "%s: constraint failed (%s:%d)",
+ td->name, __FILE__, __LINE__);
return -1;
}
}