Skip to content

Commit 26dd137

Browse files
committed
fix usage of fmt.Errorf
1 parent d954e25 commit 26dd137

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

internal/mcp/mcp_parse.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ package mcp
44
import (
55
_ "embed"
66
"encoding/json"
7-
"fmt"
87
"strings"
98

109
"github.com/sourcegraph/sourcegraph/lib/errors"
@@ -160,7 +159,7 @@ func (p *parser) parseProperties(props map[string]json.RawMessage) map[string]Sc
160159
for name, raw := range props {
161160
var r RawSchema
162161
if err := json.Unmarshal(raw, &r); err != nil {
163-
p.errors = append(p.errors, fmt.Errorf("failed to parse property %q: %w", name, err))
162+
p.errors = append(p.errors, errors.Newf("failed to parse property %q: %w", name, err))
164163
continue
165164
}
166165
res[name] = p.parseSchema(&r)

0 commit comments

Comments
 (0)