mozilla / webcompat-dashboard

Web Compatibility Knowledge Base Next Generation Dashboard
Mozilla Public License 2.0
2 stars 2 forks source link

A bit more error handling #34

Closed denschub closed 6 months ago

denschub commented 6 months ago

This PR does two things:

  1. It stops the server crashing if something bad happens in the worker. Instead, it just returns the error as an 500 so it can be shown in the client.
  2. If there is an error during loading, we now actually display the error, instead of trying to map the results, resulting in a results.map is not a function error message, which doesn't help the user.

r? @ksy36