From e198b383621d13ded4365e906a86aeb9a97084a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20P=C3=B6hland?= Date: Mon, 14 Oct 2024 19:18:41 +0200 Subject: [PATCH] improve --- src/utils/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/api.ts b/src/utils/api.ts index 2bcbee3..30063ef 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -142,7 +142,7 @@ export class XOXNOClient { message = text } - throw new Error(message) + throw new Error(message.message) } return res.json() as T