From 3098d1170f2cd1c603c4f4b41c28d59a20e57263 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Wed, 30 Aug 2023 13:41:51 +0800 Subject: [PATCH] refactor: update the error message --- gpgui/src/atoms/loginPortal.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpgui/src/atoms/loginPortal.ts b/gpgui/src/atoms/loginPortal.ts index f818312..fd90fb1 100644 --- a/gpgui/src/atoms/loginPortal.ts +++ b/gpgui/src/atoms/loginPortal.ts @@ -58,7 +58,7 @@ export const loginPortalAtom = atom( } if (userAuthCookie === "empty" || prelogonUserAuthCookie === "empty") { - throw new Error("Failed to login, please try again"); + throw new Error("Got empty user auth cookie"); } // Here, we have got the portal config successfully, refresh the cached portal data