Vurv78 / WebAudio

A safe, efficient and powerful replacement for Streamcore that adds playing & manipulating URL streams through IGmodAudioChannel/BASS
https://steamcommunity.com/sharedfiles/filedetails/?id=2466875474
MIT License
18 stars 3 forks source link

More explicit errors #71

Open Denneisk opened 2 months ago

Denneisk commented 2 months ago

When a clientside error occurs, most users don't notice as there isn't any notification besides a silent error in the console. This can lead to the addon seeming to not working at all.

I would suggest adding the error to the chat or doing something else that's more explicit to show something isn't working. Maybe have users report their error back to the chip('s owner) for a new error event or just to print their specific errors in console/chat (for the owner).

Ideally, users, especially the chip owner, should not be clueless if WebAudio seems to not do anything.

Vurv78 commented 2 months ago

Afaik, if there's a clientside error, it should turn the webaudio object invalid already, so it should error if it is interacted with again.

The problem is this is all asynchronous, so not only will an error not have a stack trace, you won't be able to catch the case where it errors..

I guess the easy solution would be to print in the chat once per chip