summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-02 16:12:00 +0000
committerDamien George <damien.p.george@gmail.com>2016-03-02 16:12:00 +0000
commit3d1d92acfcfbc47677466409fc9f60effae37678 (patch)
tree75ec30a3467225ac111f56ac228d8f35b550eaef
parent6bb9d3ea3eb411bbc64e3e89b14522df8edadba6 (diff)
downloadmicropython-3d1d92acfcfbc47677466409fc9f60effae37678.tar.gz
micropython-3d1d92acfcfbc47677466409fc9f60effae37678.zip
mpy-cross: Give a more sensible error message when file doesn't exist.
-rw-r--r--mpy-cross/main.c2
1 files changed, 1 insertions, 1 deletions
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;
}