cmu-cs-academy / desktop-cmu-graphics

BSD 3-Clause "New" or "Revised" License
15 stars 9 forks source link

Show a nice error message when Desktop CMU Graphics can't find/handle a sound file #65

Open austin-schick opened 3 months ago

austin-schick commented 3 months ago

Some users (maybe Windows users in particular) see a confusing error like [Errno 22] Invalid argument when trying to open an invalid file.

Long term, the best solution here may be to stop using subprocesses to play sounds, and instead use the PyGame mixer directly. But to close this issue, we jut need to improve this error message.