Pass on error details to frontend.