2
0

Better error when Scan fails due to unknown destination type

fixes #31
This commit is contained in:
Jack Christensen
2014-09-02 16:58:10 -05:00
parent d28108b127
commit b8881af745
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ func (rows *Rows) Scan(dest ...interface{}) (err error) {
rows.Fatal(err)
}
default:
rows.Fatal(errors.New("Unknown type"))
rows.Fatal(fmt.Errorf("Scan cannot decode into %T", d))
}
if vr.Err() != nil {