You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the errors thrown here are of appalling quality; they just contain a message, no code, no name. Therefore, attempting to interpret these errors to produce a more understandable error message for the user would force us to use a brittle system of running a regex on the error message.
Expected Behavior
The errors thrown by the ready() method follow the loadVideo() API.
Actual Behavior
Useless error.
Steps to Reproduce
player=newVimeo.Player( ... )// with private or deleted video (403/404)player.ready().catch(...)
The text was updated successfully, but these errors were encountered:
The player.ready() method should now have promise rejections with more detailed error messages during initialization. NotAllowedError, PrivacyError, for the rest Error.
More info in #165.
While trying to find a way to catch errors during instantiation of the player, we found the following workaround:
However, the errors thrown here are of appalling quality; they just contain a message, no code, no name. Therefore, attempting to interpret these errors to produce a more understandable error message for the user would force us to use a brittle system of running a regex on the error message.
Expected Behavior
The errors thrown by the
ready()
method follow theloadVideo()
API.Actual Behavior
Useless error.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: