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 1 of 5 in 3af56d1

@@ -30,7 +30,8 @@ static int assemble(const char *buf, int len, const char *outfile)
int i;
for (i = 0; i < pd->error_count; i++)
{
printf("ERROR: (line %d) %s\n",
printf("%s:%d: ERROR: %s\n",
pd->errors[i].filename ? pd->errors[i].filename : "???",
pd->errors[i].error_position,
pd->errors[i].error);
} // for

0 comments on commit 3af56d1

Please sign in to comment.