diff --git a/CHANGELOG.md b/CHANGELOG.md index d6dec8f..1fc5ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `ErrorHandler` type was added. Allow users to specify error handling function (e.g. Report error to error reporting service such as Honeybadger, Bugsnag, etc) + ## [0.5.0] - 2020-02-23 ### Changed diff --git a/processor_test.go b/processor_test.go index 0a4ee07..5e06efe 100644 --- a/processor_test.go +++ b/processor_test.go @@ -197,7 +197,7 @@ func TestProcessorRetry(t *testing.T) { } if n != tc.wantErrCount { - t.Errorf("error handler was called %d, want %d", n, tc.wantErrCount) + t.Errorf("error handler was called %d times, want %d", n, tc.wantErrCount) } } }