Commit 3d1d92ac authored by Damien George's avatar Damien George
Browse files

mpy-cross: Give a more sensible error message when file doesn't exist.

parent 6bb9d3ea
......@@ -55,7 +55,7 @@ STATIC const mp_print_t mp_stderr_print = {NULL, stderr_print_strn};
STATIC int compile_and_save(const char *file, const char *output_file) {
mp_lexer_t *lex = mp_lexer_new_from_file(file);
if (lex == NULL) {
printf("MemoryError: lexer could not allocate memory\n");
printf("could not open file '%s' for reading\n", file);
return 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment