From 43479522c41aff26634267b2b529c2dd4aee0cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahlstr=C3=B6m=20Kalle?= Date: Sun, 28 May 2023 09:14:36 +0300 Subject: [PATCH] change error wording --- packages/ilmomasiina-frontend/src/modules/auth/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ilmomasiina-frontend/src/modules/auth/actions.ts b/packages/ilmomasiina-frontend/src/modules/auth/actions.ts index f91a5b17..d10d6974 100644 --- a/packages/ilmomasiina-frontend/src/modules/auth/actions.ts +++ b/packages/ilmomasiina-frontend/src/modules/auth/actions.ts @@ -47,7 +47,7 @@ export const login = (email: string, password: string) => async (dispatch: Dispa }, }); if (!sessionResponse) { - throw Error('login error:'); + throw Error('Bad response'); } dispatch(loginSucceeded(sessionResponse)); dispatch(push(appPaths.adminEventsList));