aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fref.lex7
1 files changed, 5 insertions, 2 deletions
diff --git a/fref.lex b/fref.lex
index 9f58b69..0541e1e 100644
--- a/fref.lex
+++ b/fref.lex
@@ -215,7 +215,8 @@ harvard()
/* Reset state. */
e.a = 0;
#define DO(s,n,m) if(*m){ \
- fprintf(stderr, "%s: unused field %%"s" at line %d\n", \
+ fprintf(stderr, "%s: unused field %%" s \
+ " in reference at line %d\n", \
name, line); \
*m = 0; \
}
@@ -267,7 +268,9 @@ gettrans(char *lg)
}
return lsv;
}else{
- fprintf(stderr, "%s: invalid language %s\n", name, lg);
+ fprintf(stderr, "%s: unrecognized language %s"
+ " in reference at line %d\n",
+ name, lg, line);
exit(1);
}
}