all repos — honk @ d76e8ec4c624636dcace9dba7ab31d301da48644

my fork of honk

no rows is not an error
Ted Unangst tedu@tedunangst.com
Fri, 19 Apr 2019 23:00:46 -0400
commit

d76e8ec4c624636dcace9dba7ab31d301da48644

parent

3de7c947b5afce00bf72cee2ec99e7041800b511

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M honk.gohonk.go

@@ -568,7 +568,9 @@ row := stmtOneXonk.QueryRow(xid)

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 {