Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Aug 24, 2024
1 parent 2c75a01 commit 6acfd14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/handlers/oauth_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ func OAuthCallbackHandler() gin.HandlerFunc {
ctx.JSON(400, gin.H{"error": err.Error()})
return
}
if user == nil{
if user == nil {
log.Debug("User is nil")
ctx.JSON(
500,
gin.H{"error": "Something Went Wrong. Please Try Again."},
Expand Down

0 comments on commit 6acfd14

Please sign in to comment.