Skip to content

Commit b5234eb

Browse files
author
Mubashir Shariq
committed
correctly handling the error '
1 parent 741a6c7 commit b5234eb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

server/controllers/user.controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export async function findUserByUsername(username) {
3434
const user = await User.findByUsername(username);
3535
return user;
3636
} catch (error) {
37-
// Handling the error appropriately, e.g., log the error, throw a custom error, etc.
3837
console.error('Error finding user by username:', error.message);
3938
throw new Error('Failed to find user by username');
4039
}

0 commit comments

Comments
 (0)