From 0a3314337f34e315dc2653f6873f4bfe70f14621 Mon Sep 17 00:00:00 2001 From: marco Date: Tue, 2 Feb 2016 15:40:25 +0100 Subject: [PATCH] fixed bug: return error --- sql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql.go b/sql.go index 5adf318..a672f2d 100644 --- a/sql.go +++ b/sql.go @@ -10,7 +10,7 @@ const valuer = `func (i %[1]s) Value() (driver.Value, error) { const scanner = `func (i %[1]s) Scan(value interface{}) error { bytes, ok := value.([]byte) if !ok { - fmt.Errorf("value is not a byte slice") + return fmt.Errorf("value is not a byte slice") } str := string(bytes[:])