From 8580020f2cd1c53e3b9e1257acfc95f00a5863a9 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Tue, 19 Dec 2023 17:36:05 +0100 Subject: [PATCH] fix(ui): api client catch errors --- frontend/app/api_client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/app/api_client.ts b/frontend/app/api_client.ts index 716211ca0..151f12826 100644 --- a/frontend/app/api_client.ts +++ b/frontend/app/api_client.ts @@ -159,6 +159,8 @@ export default class APIClient { } else { return Promise.reject({ message: `! ${this.init.method} error on ${path}; ${response.status}`, response }); } + }).catch((error) => { + return Promise.reject({ message: `! ${this.init.method} error on ${path};` }); }); }