Skip to content

Commit 7b75d48

Browse files
committed
Improve error message
1 parent 85fe122 commit 7b75d48

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compile.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ mrc_parse_file_cxt(mrc_ccontext *c, const char **filenames, uint8_t **source)
229229
c->current_filename_index = 0;
230230
ssize_t length = read_input_files(c, filenames, source, c->filename_table);
231231
if (length < 0) {
232-
fprintf(stderr, "cannot open files\n");
232+
fprintf(stderr, "Cannot open files: ");
233+
for (size_t i = 0; i < filecount; i++) {
234+
fprintf(stderr, "%s ", filenames[i]);
235+
}
236+
fprintf(stderr, "\n");
233237
return NULL;
234238
}
235239
mrc_pm_parser_init(c->p, source, length, c);

0 commit comments

Comments
 (0)