no rows is not an error

This commit is contained in:
Ted Unangst 2019-04-19 23:00:46 -04:00
parent 41675d331d
commit 58c0db0296
1 changed files with 3 additions and 1 deletions

View File

@ -568,7 +568,9 @@ func getxonk(name, xid string) *Honk {
err := row.Scan(&h.ID, &h.UserID, &h.Username, &h.What, &h.Honker, &h.XID, &h.RID,
&dt, &h.URL, &aud, &h.Noise, &h.Convoy)
if err != nil {
log.Printf("error scanning xonk: %s", err)
if err != sql.ErrNoRows {
log.Printf("error scanning xonk: %s", err)
}
return nil
}
if name != "" && h.Username != name {