From a88f742c9480bc91e86d2ff24158de4200d4ed37 Mon Sep 17 00:00:00 2001 From: Jan Reimann Date: Mon, 10 Jul 2023 11:58:22 +0200 Subject: [PATCH] chore: error w/o line breaks --- src/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.ts b/src/Util.ts index a3a22f3..c4106e5 100644 --- a/src/Util.ts +++ b/src/Util.ts @@ -95,7 +95,7 @@ export class Util { } return Promise.reject("Deserializing the data from the response wasn't successful"); } else { - const error = new Error(response.statusText + " at endpoint: " + endpoint + "\n\n " + (await response.json()).error); + const error = new Error((await response.json()).error); return Promise.reject(error) } }