Skip to content

Commit

Permalink
Fix error handling in sign-in.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
yunho7687 committed Jul 26, 2024
1 parent 222a25b commit 32bea8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/pages/sign-in.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function SignIn() {
console.error("Error response from server:", error.response.data);
console.error("Status code:", error.response.status);
// Handle specific error responses from the server
if (error.response.status === 401 || 400) {
if (error.response.status === 401 || error.response.status === 400) {
setErrorMessage("Invalid username or password. Please try again.");
// Show a message to the user or handle the error accordingly
} else if (error.response.status === 500) {
Expand Down

0 comments on commit 32bea8a

Please sign in to comment.