diff --git a/testhelper.go b/testhelper.go index 60a6d18..4bee0c2 100644 --- a/testhelper.go +++ b/testhelper.go @@ -24,7 +24,9 @@ func main() { account := r.PostFormValue("account") var code string err := db.QueryRow("SELECT verification_code FROM pending_accounts WHERE number = $1", account).Scan(&code) - crash(err) + if(err != nil) { + fmt.Printf(w, "\n") + } fmt.Fprintf(w, "%s\n", code) })