diff --git a/testhelper.go b/testhelper.go index 704bb02..a069ab4 100644 --- a/testhelper.go +++ b/testhelper.go @@ -26,10 +26,9 @@ func main() { err := db.QueryRow("SELECT verification_code FROM pending_accounts WHERE number = $1", account).Scan(&code) log.Printf("Looking for verification code for %s", account) if err != nil { - fmt.Fprintf(w, "An error occured: %s\n", err) + panic(err) } else { fmt.Fprintf(w, "%s\n", code) - panic(err) } })