keithclark / ZzFXM

A super small music generator for use in size-limited JavaScript productions
https://keithclark.github.io/ZzFXM/
MIT License
418 stars 33 forks source link

Show error message saying sound failed to import #36

Open skeddles opened 2 years ago

skeddles commented 2 years ago

When you import a sound it's not really clear if it worked unless you play it.

Sometimes it fails and shows an error in the console: Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data decode.js:10

Would be nice if it at least did an alert saying "failed to load sound"