diff --git a/src/services/UserService.ts b/src/services/UserService.ts index dd7f99b..4521209 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -20,7 +20,7 @@ const login = async (username: string, password: string): Promise => { throw "Sorry, login failed. Please try again"; } } catch(err) { - return Promise.reject(err); + return Promise.reject("Sorry, login failed. Please try again"); } return Promise.resolve(token) }