all repos — honk @ c1dc5329d3c8ea16aedafb5ca6d7e0d7f8fef6ce

my fork of honk

xid failure should just panic
Ted Unangst tedu@tedunangst.com
Mon, 15 Apr 2019 18:01:30 -0400
commit

c1dc5329d3c8ea16aedafb5ca6d7e0d7f8fef6ce

parent

90947efebcb082ce37cf51f71e2771cf98b2d7cd

2 files changed, 3 insertions(+), 8 deletions(-)

jump to
M fun.gofun.go

@@ -88,17 +88,15 @@ if err == nil {

continue } if err != sql.ErrNoRows { - log.Printf("err picking xid: %s", err) - return "" + log.Panicf("err picking xid: %s", err) } - r = db.QueryRow("select fileid from files where name = ?", s) + r = db.QueryRow("select fileid from files where xid = ?", s) err = r.Scan(&x) if err == nil { continue } if err != sql.ErrNoRows { - log.Printf("err picking xid: %s", err) - return "" + log.Panicf("err picking xid: %s", err) } return s }
M honk.gohonk.go

@@ -703,9 +703,6 @@ userinfo := GetUserInfo(r)

dt := time.Now().UTC() xid := xfiltrate() - if xid == "" { - return - } what := "honk" if rid != "" { what = "tonk"