diff --git a/error_test.go b/error_test.go index b3f8447..0f92881 100644 --- a/error_test.go +++ b/error_test.go @@ -27,7 +27,9 @@ func TestFailures(t *testing.T) { if err == nil { _, err = db.Exec("drop table foo") } - if err.Code != ErrNotADB { + + sqliteErr := err.(Error) + if sqliteErr.Code != ErrNotADB { t.Error("wrong error code for corrupted DB") } if err.Error() == "" {