aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers/userController.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--backend/controllers/userController.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/userController.go b/backend/controllers/userController.go
index 70a2a34..b23a303 100644
--- a/backend/controllers/userController.go
+++ b/backend/controllers/userController.go
@@ -49,7 +49,7 @@ func FetchUser(c *gin.Context) {
49 return 49 return
50 } 50 }
51 if err != nil { 51 if err != nil {
52 c.JSON(http.StatusInternalServerError, models.ErrorResponse(err.Error())) 52 c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error()))
53 return 53 return
54 } 54 }
55 // Target user exists 55 // Target user exists