diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-03-02 16:12:00 +0000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-03-02 16:12:00 +0000 |
| commit | 3d1d92acfcfbc47677466409fc9f60effae37678 (patch) | |
| tree | 75ec30a3467225ac111f56ac228d8f35b550eaef /mpy-cross/main.c | |
| parent | 6bb9d3ea3eb411bbc64e3e89b14522df8edadba6 (diff) | |
mpy-cross: Give a more sensible error message when file doesn't exist.
Diffstat (limited to 'mpy-cross/main.c')
| -rw-r--r-- | mpy-cross/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpy-cross/main.c b/mpy-cross/main.c index a76df26bd..952ff5218 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; } |
