fix in error reporting
This commit is contained in:
parent
6db64e924c
commit
45c7ab1938
1 changed files with 4 additions and 1 deletions
|
@ -20,7 +20,10 @@ int err_occurred;
|
||||||
err_hdr(s)
|
err_hdr(s)
|
||||||
char *s;
|
char *s;
|
||||||
{
|
{
|
||||||
fprint(ERROUT, "\"%s\", line %d: %s", FileName, LineNumber, s);
|
if (FileName) {
|
||||||
|
fprint(ERROUT, "\"%s\", line %d: %s", FileName, LineNumber, s);
|
||||||
|
}
|
||||||
|
else fprint(ERROUT, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*VARARGS1*/
|
/*VARARGS1*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue