diff --git a/errors_test.go b/errors_test.go index 1d6968f..aa494e3 100644 --- a/errors_test.go +++ b/errors_test.go @@ -53,7 +53,7 @@ func TestDBSError(t *testing.T) { fmt.Println("Wrapped error:", err3.Error()) err4 := dbs.Error(nil, dbs.GenericErrorCode, "nil wrapper", "TestDBSError") - if !strings.Contains(err4.Error(), "Error: nil") { + if !strings.Contains(err4.Error(), "nil wrapper") { t.Error("error does not contain nil error") } fmt.Println("Wrapped error:", err4.Error())