From 3d1d92acfcfbc47677466409fc9f60effae37678 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 2 Mar 2016 16:12:00 +0000 Subject: [PATCH] mpy-cross: Give a more sensible error message when file doesn't exist. --- mpy-cross/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpy-cross/main.c b/mpy-cross/main.c index a76df26bd9..952ff52184 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -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; }