Deleting the most recently loaded ROM from the SD card causes unfriendly error message
Describe the bug
If you load up a ROM and then power down and delete that ROM from the SD card, on next boot it will attempt to reload that last ROM and it shows an error. The error is not friendly for a casual user without technical knowledge.
To Reproduce
Steps to reproduce the behavior:
- load any rom from SD card
- power off
- delete rom file from SD card
- insert SD card and power on
- Unfriendly Error message is shown
Expected behavior
It should fail gracefully without the error message, or a more friendly message should be shown..
Seems like a bug but may be intended behaviour. Maybe an improvement? Closing for now.
It should fail gracefully without the error message, or a more friendly message should be shown..
It's not possible to guess if the user deliberately deleted the file or if the file failed to load due to hardware or software fault, so we have to show a message. But I'm open to improving it.
I think the current error message shown is something like "ROM failed to load!", right? Do you have suggestions to make it friendly?
What do you think of something like:
Failed to load: smb.nes
Error: File not found
?
Yes, that seems like a reasonable improvement. The additional feedback makes it clearer.
Alright, I'll make the changes. I'll need some time (there's a surprising amount of things to consider for such a simple change!) but it will be in the next release. Let's keep this issue open until the change has landed.