diff options
Diffstat (limited to 'error_test.go')
-rw-r--r-- | error_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/error_test.go b/error_test.go index afa7b27..b3f8447 100644 --- a/error_test.go +++ b/error_test.go @@ -27,7 +27,7 @@ func TestFailures(t *testing.T) { if err == nil { _, err = db.Exec("drop table foo") } - if err != ErrNotADB { + if err.Code != ErrNotADB { t.Error("wrong error code for corrupted DB") } if err.Error() == "" { |