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.
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.
This PR does two things:
results.map is not a function
error message, which doesn't help the user.r? @ksy36