Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
py: Include filename in errors from loading/saving files via "open".
This improves error messages in mpy-cross: - When loading a .py file that doesn't exist (or can't be opened) it now includes the filename in the OSError. - When saving a .mpy file that can't be opened it now raises an exception (prior, it would silently fail), and includes the filename in the OSError. Signed-off-by: Damien George <damien@micropython.org>
- Loading branch information