1 parent 2503b59 commit 480159cCopy full SHA for 480159c
1 file changed
extmod/vfs_fat.c
@@ -145,7 +145,7 @@ STATIC mp_obj_t fat_vfs_getcwd(mp_obj_t vfs_in) {
145
FRESULT res = f_getcwd(buf, sizeof buf);
146
147
if (res != FR_OK) {
148
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
+ nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
149
}
150
151
return mp_obj_new_str(buf, strlen(buf), false);
0 commit comments