Don't log message in get_user if it's an ErrNoRows

This commit is contained in:
Howl 2016-05-30 19:18:31 +02:00
parent ba5a078db3
commit 122e2afa1b

View File

@ -43,7 +43,9 @@ func GetUser(c *gin.Context, db *sql.DB) {
)
if err != nil {
c.JSON(200, defaultResponse)
if err != sql.ErrNoRows {
c.Error(err)
}
return
}
if !display {