From 7822e7154f9f0361b93843a8e8f02359df097060 Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 18 Dec 2018 00:20:55 -0800 Subject: [PATCH] Update testhelper --- testhelper.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) })