From 4026055b7dd6527a0d831f123d15e2f9be65acf9 Mon Sep 17 00:00:00 2001 From: Kallesh B S Date: Thu, 13 Mar 2025 12:42:31 +0530 Subject: [PATCH] removed breaking error add added log in auth.service --- src/auth/auth.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 { }