From 897ab4e28b133189f9b79e96b7ab8d74cec4f130 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sat, 29 Feb 2020 21:34:12 -0800 Subject: [PATCH] Add ErrorHandler type to changelog --- CHANGELOG.md | 4 ++++ processor_test.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) } } }