diff --git a/revivelib/core_internal_test.go b/revivelib/core_internal_test.go index 3de7643..ea1f779 100644 --- a/revivelib/core_internal_test.go +++ b/revivelib/core_internal_test.go @@ -62,7 +62,7 @@ func getMockRevive(t *testing.T) *Revive { NewExtraRule(&mockRule{}, lint.RuleConfig{}), ) if err != nil { - t.Fatal(err.Error()) + t.Fatal(err) } return revive diff --git a/revivelib/core_test.go b/revivelib/core_test.go index 3e401f6..045711a 100644 --- a/revivelib/core_test.go +++ b/revivelib/core_test.go @@ -98,7 +98,7 @@ func getMockRevive(t *testing.T) *revivelib.Revive { revivelib.NewExtraRule(&mockRule{}, lint.RuleConfig{}), ) if err != nil { - t.Fatal(err.Error()) + t.Fatal(err) } return revive