Skip to content

Commit

Permalink
update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanahamed committed Nov 20, 2024
1 parent f9399cb commit acc66e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ fastify.get('/oauth/google/callback', function (request, reply) {
googleAuthCallback(result.token).then(
function (result) {
if (result.error) {
request.log.error(result.error.error)
request.log.error(result.error)
reply.redirect(WEB_OAUTH_CALLBACK + "?error=oauth-error")
} else {
reply.setCookie(
Expand Down Expand Up @@ -1047,7 +1047,7 @@ fastify.post("/auth/sign-up", {
error: {
code: "USERNAME_TAKEN",
statusCode: 400,
message: "Username taken"
message: "Username taken/already being used"
}
})
}
Expand Down

0 comments on commit acc66e9

Please sign in to comment.