Skip to content

Commit

Permalink
#10 correção nos status de erro
Browse files Browse the repository at this point in the history
  • Loading branch information
leoribeiro36 committed Apr 20, 2019
1 parent 07716f4 commit 52f7205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/loginController.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const signUp = async (req, res) => {
user.password = undefined;
return res.status(201).send(user);
} catch (error) {
return res.status(400).send({
return res.status(500).send({
mensagem: 'Erro inesperado'
});
}
Expand All @@ -66,7 +66,7 @@ const signIn = async (req, res) => {
});
return res.status(200).send(userRerutn);
} catch (error) {
return res.status(400).send({
return res.status(500).send({
mensagem: 'Erro inesperado'
});
}
Expand Down

0 comments on commit 52f7205

Please sign in to comment.