esp8266: Use mp_raise_OSError helper function.

This commit is contained in:
Damien George
2016-10-07 14:00:51 +11:00
parent a2bfcbe029
commit 23a568240d
2 changed files with 4 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(os_uname_obj, os_uname);
#if MICROPY_VFS_FAT
mp_obj_t vfs_proxy_call(qstr method_name, mp_uint_t n_args, const mp_obj_t *args) {
if (MP_STATE_PORT(fs_user_mount)[0] == NULL) {
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(MP_ENODEV)));
mp_raise_OSError(MP_ENODEV);
}
mp_obj_t meth[n_args + 2];