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