-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Error class to give more specific errors #3
Comments
Hi Lyra, |
The issue here is that we use Airbrake to report JavaScript errors. The airbrake JS SDK registers a global The I'm not sure what the right approach is here. I can see why you may not want to wrap these as twilio-voice.js/lib/twilio/device.ts Lines 1252 to 1255 in 385c31f
|
Thanks @doryphores, I see what you mean. I agree that we should either catch these rejections in the SDK (if we plan to do something about them) or change this method to return |
My team is using twilio-client.js in our telephony app and we are experiencing the following issue. When a twilio networking error occurs we do not have enough information to handle it properly. The code that is relevant to this issue is here.
This error is too generic for us to handle specifically and we are looking for advice on how to move forward.
We noticed that twilio-voice.js is the next version for this library and according to this it contains much more detailed information about errors, however this particular error class remains as generic as in twilio-client.js
The text was updated successfully, but these errors were encountered: