diff --git a/app/peppy/user.go b/app/peppy/user.go index 0b297a1..2e1946c 100644 --- a/app/peppy/user.go +++ b/app/peppy/user.go @@ -43,7 +43,9 @@ func GetUser(c *gin.Context, db *sql.DB) { ) if err != nil { c.JSON(200, defaultResponse) - c.Error(err) + if err != sql.ErrNoRows { + c.Error(err) + } return } if !display {