Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 480159c

Browse files
author
Paul Sokolovsky
committed
extmod/vfs_fat: getcwd(): Use mp_obj_new_exception_arg1().
Copy-paste issue, with the original mistake in stmhal.
1 parent 2503b59 commit 480159c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/vfs_fat.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ STATIC mp_obj_t fat_vfs_getcwd(mp_obj_t vfs_in) {
145145
FRESULT res = f_getcwd(buf, sizeof buf);
146146

147147
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])));
148+
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(fresult_to_errno_table[res])));
149149
}
150150

151151
return mp_obj_new_str(buf, strlen(buf), false);

0 commit comments

Comments
 (0)