diff --git a/error_test.go b/error_test.go index 1ccbe5b..8ea68a1 100644 --- a/error_test.go +++ b/error_test.go @@ -40,7 +40,7 @@ func TestCorruptDbErrors(t *testing.T) { _, err = db.Exec("drop table foo") } - sqliteErr := err.(Error) + sqliteErr := err.(*Error) if sqliteErr.Code != ErrNotADB { t.Error("wrong error code for corrupted DB") }