newlines in error messages

This commit is contained in:
Ted Unangst 2023-03-02 23:37:16 -05:00
parent ba9d745efa
commit ff5b731644
1 changed files with 4 additions and 4 deletions

View File

@ -380,14 +380,14 @@ func main() {
} }
user, err := butwhatabout(args[1]) user, err := butwhatabout(args[1])
if err != nil { if err != nil {
fmt.Printf("user not found") fmt.Printf("user not found\n")
return return
} }
var meta HonkerMeta var meta HonkerMeta
mj, _ := jsonify(&meta) mj, _ := jsonify(&meta)
honkerid, err := savehonker(user, args[2], "", "presub", "", mj) honkerid, err := savehonker(user, args[2], "", "presub", "", mj)
if err != nil { if err != nil {
fmt.Printf("had some trouble with that: %s", err) fmt.Printf("had some trouble with that: %s\n", err)
return return
} }
followyou(user, honkerid, true) followyou(user, honkerid, true)
@ -398,14 +398,14 @@ func main() {
} }
user, err := butwhatabout(args[1]) user, err := butwhatabout(args[1])
if err != nil { if err != nil {
fmt.Printf("user not found") fmt.Printf("user not found\n")
return return
} }
row := db.QueryRow("select honkerid from honkers where xid = ? and userid = ? and flavor in ('sub')", args[2], user.ID) row := db.QueryRow("select honkerid from honkers where xid = ? and userid = ? and flavor in ('sub')", args[2], user.ID)
var honkerid int64 var honkerid int64
err = row.Scan(&honkerid) err = row.Scan(&honkerid)
if err != nil { if err != nil {
fmt.Printf("sorry couldn't find them") fmt.Printf("sorry couldn't find them\n")
return return
} }
unfollowyou(user, honkerid, true) unfollowyou(user, honkerid, true)