finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
https://perspective.finos.org/
Apache License 2.0
7.73k stars 1.05k forks source link

Catching error messages to show meaningful explanation of failures #2479

Closed kryaksy closed 6 months ago

kryaksy commented 6 months ago

Support Question

I've encountered an issue where various CSV conversion errors are being logged to the console, which makes it challenging to capture and display meaningful messages to the user. These errors seem to abort the update process unexpectedly.

Attached is a screenshot illustrating the errors:

Screenshot 2023-12-20 at 14 20 56 copy

I am looking for a way to properly capture these errors so that I can provide a meaningful and user-friendly response instead of these raw messages. The current behavior is not conducive to a good user experience, as the console logs are not visible to the end-users.

Could you advise on best practices for capturing these errors within the code?

Ideally, I would like to intercept these errors before they hit the console, and then log them or display a custom error message to the user. Any pointers or examples would be greatly appreciated.

texodus commented 6 months ago

I don't understand - these aren't user errors, they are errors in your usage of the API (sending invalid data to update()). What is the use case for reporting these?