diff options
author | Damien George <damien.p.george@gmail.com> | 2017-03-14 11:37:31 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-14 11:52:05 +1100 |
commit | 68e1c4f0684de5dd5cefaf8d775657b42ce09dbe (patch) | |
tree | 7ca0aa6f3cfe2588e5e34768fe9fbdec1d90b443 /pic16bit/main.c | |
parent | 41b1df604617bdde59bb722b9247c16fa4677d94 (diff) | |
download | micropython-68e1c4f0684de5dd5cefaf8d775657b42ce09dbe.tar.gz micropython-68e1c4f0684de5dd5cefaf8d775657b42ce09dbe.zip |
pic16bit/main: Make mp_lexer_new_from_file raise an exception.
Diffstat (limited to 'pic16bit/main.c')
-rw-r--r-- | pic16bit/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pic16bit/main.c b/pic16bit/main.c index 5c58d5c68b..f2a9debab1 100644 --- a/pic16bit/main.c +++ b/pic16bit/main.c @@ -33,6 +33,7 @@ #include "py/runtime.h" #include "py/gc.h" #include "py/mphal.h" +#include "py/mperrno.h" #include "lib/utils/pyexec.h" #include "readline.h" #include "board.h" @@ -98,7 +99,7 @@ void gc_collect(void) { } mp_lexer_t *mp_lexer_new_from_file(const char *filename) { - return NULL; + mp_raise_OSError(MP_ENOENT); } mp_import_stat_t mp_import_stat(const char *path) { |