From a7bf1964de65f3495d03a3bda4b0fae2e7f6bd1e Mon Sep 17 00:00:00 2001 From: axolotle Date: Sat, 10 Apr 2021 14:45:40 +0200 Subject: [PATCH] replace backslash n with
--- app/src/api/handlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`.