Skip to content
Permalink
Browse files
Report filenames in error messages.
  • Loading branch information
icculus committed Feb 12, 2009
1 parent 4018cf4 commit 3af56d187f0c28ba95af383de72d2b6a07dddc20

File 2 of 5 in 3af56d1

@@ -88,7 +88,10 @@ static int do_file(const char *profile, const char *dname, const char *fn, int *

if (a->error_count > 0)
{
report("FAIL: %s (line %d) %s\n", fname, a->errors[0].error_position, a->errors[0].error);
report("FAIL: %s (line %d) %s\n",
a->errors[0].filename ? a->errors[0].filename : "???",
a->errors[0].error_position,
a->errors[0].error);
return 1;
} // if

0 comments on commit 3af56d1

Please sign in to comment.