Don't log message in get_user if it's an ErrNoRows
This commit is contained in:
parent
ba5a078db3
commit
122e2afa1b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user