From 1e4373ae430524c0225306a619258801503db5e2 Mon Sep 17 00:00:00 2001 From: Jan Reimann Date: Mon, 10 Jul 2023 11:53:51 +0200 Subject: [PATCH] chore: meaningful TestIO error message --- src/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util.ts b/src/Util.ts index ded69c2..a3a22f3 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); + const error = new Error(response.statusText + " at endpoint: " + endpoint + "\n\n " + (await response.json()).error); return Promise.reject(error) } }