summaryrefslogtreecommitdiff
path: root/extmod
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-02-04 13:32:39 -0500
committerDan Halbert <halbert@halwitz.org>2020-02-04 13:32:39 -0500
commit57b566e73614c74a9fc74cd2d2007d91cdb507db (patch)
tree46f302c21c5e243cb17997559b93bd6665289573 /extmod
parenta4ebd2f7c112dc5d185d198e28e00edabd395a84 (diff)
Include filename for 'No such file/directory', etc.
Diffstat (limited to 'extmod')
-rw-r--r--extmod/vfs_fat_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/vfs_fat_file.c b/extmod/vfs_fat_file.c
index 3ea9cee52..dc0a893a5 100644
--- a/extmod/vfs_fat_file.c
+++ b/extmod/vfs_fat_file.c
@@ -199,7 +199,7 @@ STATIC mp_obj_t file_open(fs_user_mount_t *vfs, const mp_obj_type_t *type, mp_ar
FRESULT res = f_open(&vfs->fatfs, &o->fp, fname, mode);
if (res != FR_OK) {
m_del_obj(pyb_file_obj_t, o);
- mp_raise_OSError(fresult_to_errno_table[res]);
+ mp_raise_OSError_errno_str(fresult_to_errno_table[res], fname);
}
// If we're reading, turn on fast seek.
if (mode == FA_READ) {