diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 9075b2b..c3d5e6f 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -117,8 +117,9 @@ export class AuthService { return {rows,chartResult:crows}; } catch (err) { - console.error('Error fetching users: ', err); - throw new Error('Error fetching users'); + console.error('Error fetching users: ', err.message); + // throw new Error('Error fetching users'); + return {error:"Invalid username or password"} } finally { }