aboutsummaryrefslogtreecommitdiff
path: root/error_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'error_test.go')
-rw-r--r--error_test.go4
1 files changed, 3 insertions, 1 deletions
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() == "" {