Skip to content

Commit 3bb0ccb

Browse files
committed
chore: use multierror
1 parent bb1ff3f commit 3bb0ccb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/lint/lintersdb/custom_linters.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"path/filepath"
66
"plugin"
77

8+
"github.com/hashicorp/go-multierror"
89
"github.com/spf13/viper"
910
"golang.org/x/tools/go/analysis"
1011

@@ -98,7 +99,7 @@ func (m *Manager) lookupPlugin(plug *plugin.Plugin, settings any) ([]*analysis.A
9899
analyzers, errP := m.lookupAnalyzerPlugin(plug)
99100
if err != nil {
100101
// TODO(ldez): use `errors.Join` when we will upgrade to go1.20.
101-
return nil, fmt.Errorf("%s: %w", err, errP)
102+
return nil, multierror.Append(err, errP)
102103
}
103104

104105
return analyzers, nil

0 commit comments

Comments
 (0)