diff --git a/app/src/api/handlers.js b/app/src/api/handlers.js index 123797da..259e5d2d 100644 --- a/app/src/api/handlers.js +++ b/app/src/api/handlers.js @@ -59,7 +59,7 @@ export async function handleError (request, response, errorData) { let errorCode = response.status in errors ? response.status : undefined if (typeof errorData === 'string') { // FIXME API: Patching errors that are plain text or html. - errorData = { error: errorData } + errorData = { error: errorData.replace('\n', '
') } } if ('log_ref' in errorData) { // Define a special error so it won't get caught as a `APIBadRequestError`.