diff options
| author | Dan Halbert <halbert@halwitz.org> | 2020-02-04 13:32:39 -0500 |
|---|---|---|
| committer | Dan Halbert <halbert@halwitz.org> | 2020-02-04 13:32:39 -0500 |
| commit | 57b566e73614c74a9fc74cd2d2007d91cdb507db (patch) | |
| tree | 46f302c21c5e243cb17997559b93bd6665289573 /extmod | |
| parent | a4ebd2f7c112dc5d185d198e28e00edabd395a84 (diff) | |
Include filename for 'No such file/directory', etc.
Diffstat (limited to 'extmod')
| -rw-r--r-- | extmod/vfs_fat_file.c | 2 |
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) { |
