better logging

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@837 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-03-24 16:35:24 +00:00
parent d30bc6c801
commit 20e60ccdac
1 changed files with 4 additions and 2 deletions

View File

@ -29,12 +29,14 @@ asn1f_value_resolve(arg_t *arg, asn1p_expr_t *expr, const enum asn1p_constraint_
type_expr = asn1f_find_terminal_type(arg, expr);
DEBUG("terminal type %p", type_expr);
if(type_expr == 0) {
FATAL("Terminal type for is %s not found", expr->Identifier);
FATAL("Terminal type for %s at line %d not found",
expr->Identifier, expr->_lineno);
return -1;
}
if(asn1f_look_value_in_type(arg, type_expr, expr) == -1) {
FATAL("Value not found in type for %s", expr->Identifier);
FATAL("Value not found in type for %s at line %d",
expr->Identifier, expr->_lineno);
return -1;
}