From 43a0a46bfdd659d34f14a520026c9ad023d093e2 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 29 Jan 2021 23:23:11 +0000 Subject: [PATCH] more error logging. --- src/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 179244a..3e2813c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -67,6 +67,11 @@ const App = (): React.ReactElement => { status: res.status ? res.status : 200, statusText: res.statusText ? res.statusText : "k", }); + }) + .catch((error) => { + console.error(error); + console.error(`Credentials: ${JSON.stringify(credentials)}`); + throw new Error(error); }); }; });