no rows is not an error
This commit is contained in:
parent
41675d331d
commit
58c0db0296
1 changed files with 3 additions and 1 deletions
4
honk.go
4
honk.go
|
|
@ -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,
|
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)
|
&dt, &h.URL, &aud, &h.Noise, &h.Convoy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("error scanning xonk: %s", err)
|
if err != sql.ErrNoRows {
|
||||||
|
log.Printf("error scanning xonk: %s", err)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if name != "" && h.Username != name {
|
if name != "" && h.Username != name {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue