all repos — honk @ 234f4e7e1f6aa86a4403aba79be76f5592c52ba2

my fork of honk

newlines in error messages
Ted Unangst tedu@tedunangst.com
Thu, 02 Mar 2023 23:37:16 -0500
commit

234f4e7e1f6aa86a4403aba79be76f5592c52ba2

parent

f1b205d2c46c788b237f4729c2eb03d2593c4809

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

jump to
M honk.gohonk.go

@@ -380,14 +380,14 @@ return

} user, err := butwhatabout(args[1]) if err != nil { - fmt.Printf("user not found") + fmt.Printf("user not found\n") return } var meta HonkerMeta mj, _ := jsonify(&meta) honkerid, err := savehonker(user, args[2], "", "presub", "", mj) if err != nil { - fmt.Printf("had some trouble with that: %s", err) + fmt.Printf("had some trouble with that: %s\n", err) return } followyou(user, honkerid, true)

@@ -398,14 +398,14 @@ return

} user, err := butwhatabout(args[1]) if err != nil { - fmt.Printf("user not found") + fmt.Printf("user not found\n") return } row := db.QueryRow("select honkerid from honkers where xid = ? and userid = ? and flavor in ('sub')", args[2], user.ID) var honkerid int64 err = row.Scan(&honkerid) if err != nil { - fmt.Printf("sorry couldn't find them") + fmt.Printf("sorry couldn't find them\n") return } unfollowyou(user, honkerid, true)