From f7f76d6f04fa4c3877ebfa4f279fb501cdaa28cd Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Sat, 12 Sep 2020 16:57:19 -0700 Subject: [PATCH] examples/sql-nullstring: fix dropped error --- examples/sql-nullstring/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/sql-nullstring/main.go b/examples/sql-nullstring/main.go index cfcf6390..da54f4d6 100644 --- a/examples/sql-nullstring/main.go +++ b/examples/sql-nullstring/main.go @@ -192,6 +192,9 @@ query { log.Fatal(r1) } b1, err := json.MarshalIndent(r1, "", " ") + if err != nil { + log.Fatal(err) + } b2, err := json.MarshalIndent(r2, "", " ") if err != nil { log.Fatal(err)