Skip to content

Commit 3d1d92a

Browse files
committed
mpy-cross: Give a more sensible error message when file doesn't exist.
1 parent 6bb9d3e commit 3d1d92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpy-cross/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ STATIC const mp_print_t mp_stderr_print = {NULL, stderr_print_strn};
5555
STATIC int compile_and_save(const char *file, const char *output_file) {
5656
mp_lexer_t *lex = mp_lexer_new_from_file(file);
5757
if (lex == NULL) {
58-
printf("MemoryError: lexer could not allocate memory\n");
58+
printf("could not open file '%s' for reading\n", file);
5959
return 1;
6060
}
6161

0 commit comments

Comments
 (0)