Skip to content

Commit

Permalink
When IMCC can't find a file, actually tell the user the name of the f…
Browse files Browse the repository at this point in the history
…ile that can't be found. not_gerd++ for the find.
  • Loading branch information
Whiteknight committed Aug 23, 2011
1 parent c52abd8 commit 965e04d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compilers/imcc/imcc.l
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ include_file(ARGMOD(imc_info_t *imcc), ARGIN(STRING *file_name), void *yyscanner
if (STRING_IS_NULL(s)
|| (file = PIO_OPEN(imcc->interp, s, PIO_F_READ)) == PIO_INVALID_HANDLE) {
IMCC_fataly(imcc, EXCEPTION_EXTERNAL_ERROR,
"No such file or directory");
"No such file or directory '%Ss'", file_name);
}

frame->s.file = file_name;
Expand Down
2 changes: 1 addition & 1 deletion compilers/imcc/imclexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -5391,7 +5391,7 @@ include_file(ARGMOD(imc_info_t *imcc), ARGIN(STRING *file_name), void *yyscanner
if (STRING_IS_NULL(s)
|| (file = PIO_OPEN(imcc->interp, s, PIO_F_READ)) == PIO_INVALID_HANDLE) {
IMCC_fataly(imcc, EXCEPTION_EXTERNAL_ERROR,
"No such file or directory");
"No such file or directory '%Ss'", file_name);
}

frame->s.file = file_name;
Expand Down

0 comments on commit 965e04d

Please sign in to comment.