diff --git a/v2/pkg/reporting/exporters/es/elasticsearch.go b/v2/pkg/reporting/exporters/es/elasticsearch.go index f6c69cf6..784e587d 100644 --- a/v2/pkg/reporting/exporters/es/elasticsearch.go +++ b/v2/pkg/reporting/exporters/es/elasticsearch.go @@ -52,7 +52,7 @@ func New(option *Options) (*Exporter, error) { var ei *Exporter err := validateOptions(option) if err != nil { - return nil, errors.New("could not parse config") + return nil, err } client := &http.Client{ diff --git a/v2/pkg/reporting/trackers/github/github.go b/v2/pkg/reporting/trackers/github/github.go index c1adbfb8..672f62ed 100644 --- a/v2/pkg/reporting/trackers/github/github.go +++ b/v2/pkg/reporting/trackers/github/github.go @@ -44,7 +44,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.Wrap(err, "could not parse config") + return nil, err } ctx := context.Background() ts := oauth2.StaticTokenSource( diff --git a/v2/pkg/reporting/trackers/gitlab/gitlab.go b/v2/pkg/reporting/trackers/gitlab/gitlab.go index fbce367b..35922970 100644 --- a/v2/pkg/reporting/trackers/gitlab/gitlab.go +++ b/v2/pkg/reporting/trackers/gitlab/gitlab.go @@ -39,7 +39,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.Wrap(err, "could not parse config") + return nil, err } gitlabOpts := []gitlab.ClientOptionFunc{} if options.BaseURL != "" { diff --git a/v2/pkg/reporting/trackers/jira/jira.go b/v2/pkg/reporting/trackers/jira/jira.go index d1552286..3237e929 100644 --- a/v2/pkg/reporting/trackers/jira/jira.go +++ b/v2/pkg/reporting/trackers/jira/jira.go @@ -48,7 +48,7 @@ type Options struct { func New(options *Options) (*Integration, error) { err := validateOptions(options) if err != nil { - return nil, errors.New("could not parse config") + return nil, err } username := options.Email if !options.Cloud {