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
Currently we throw errors with just an error message (example). This means that apps using Color.js only have two real options: catching all errors and just indicating that something went wrong, or passing the actual message string on to the user.
I think we can use the cause property to pass in more structured data, including an error code. If so, it would be good to do this across the codebase.
The text was updated successfully, but these errors were encountered:
Currently we throw errors with just an error message (example). This means that apps using Color.js only have two real options: catching all errors and just indicating that something went wrong, or passing the actual message string on to the user.
I think we can use the
cause
property to pass in more structured data, including an error code. If so, it would be good to do this across the codebase.The text was updated successfully, but these errors were encountered: