summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-29 20:04:53 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-29 20:04:53 +0300
commit480159ca8be7e9b75dea7db56f0affa9c3778054 (patch)
tree6bc1fa35942c7af7289b90320eb7944c89095583
parent2503b595923d0d6b10c0a893ec95d65dacc25ace (diff)
extmod/vfs_fat: getcwd(): Use mp_obj_new_exception_arg1().
Copy-paste issue, with the original mistake in stmhal.
-rw-r--r--extmod/vfs_fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_fat.c b/extmod/vfs_fat.c
index 348067d06..07b26f05f 100644
--- a/extmod/vfs_fat.c
+++ b/extmod/vfs_fat.c
@@ -145,7 +145,7 @@ STATIC mp_obj_t fat_vfs_getcwd(mp_obj_t vfs_in) {
FRESULT res = f_getcwd(buf, sizeof buf);
if (res != FR_OK) {
- 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])));
}
return mp_obj_new_str(buf, strlen(buf), false);