diff --git a/errors.go b/errors.go index 33612e2..5cfbdbb 100644 --- a/errors.go +++ b/errors.go @@ -43,7 +43,7 @@ type ErrorRegistry struct { // handlers maps error types with their handlers handlers map[error]*errorHandler - // defaultHandler + // defaultHandler is called if no matching error was registered defaultHandler func(ctx context.Context, err error) (int, any) }