removed breaking error add added log in auth.service

This commit is contained in:
Kallesh B S 2025-03-13 12:42:31 +05:30
parent 2cd381240b
commit 4026055b7d

View File

@ -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 { }