diff options
author | Damien George <damien.p.george@gmail.com> | 2016-10-07 14:05:15 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-10-07 14:05:15 +1100 |
commit | 503089ea9d6b358f1a06ad1f164561b7cf11c742 (patch) | |
tree | c206ac1372a24d5f6da17e0d33cc30c9c7df0c93 /unix/modos.c | |
parent | 23a568240d9fb216c5f2ca9feeb3134725c9eea0 (diff) | |
download | micropython-503089ea9d6b358f1a06ad1f164561b7cf11c742.tar.gz micropython-503089ea9d6b358f1a06ad1f164561b7cf11c742.zip |
unix: Use mp_raise_OSError helper function.
Diffstat (limited to 'unix/modos.c')
-rw-r--r-- | unix/modos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/modos.c b/unix/modos.c index 833d69b236..b29805269d 100644 --- a/unix/modos.c +++ b/unix/modos.c @@ -53,7 +53,7 @@ extern const mp_obj_type_t mp_fat_vfs_type; #define RAISE_ERRNO(err_flag, error_val) \ { if (err_flag == -1) \ - { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error_val))); } } + { mp_raise_OSError(error_val); } } STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) { struct stat sb; |