Skip to content

Commit 99d7f3e

Browse files
committed
fix usage of fmt.Errorf
1 parent 380f36a commit 99d7f3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/src/mcp_parse.go

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

109
"github.com/sourcegraph/sourcegraph/lib/errors"
@@ -136,7 +135,7 @@ func (p *Parser) parseProperties(props map[string]json.RawMessage) map[string]Sc
136135
for name, raw := range props {
137136
var r RawSchema
138137
if err := json.Unmarshal(raw, &r); err != nil {
139-
p.errors = append(p.errors, fmt.Errorf("failed to parse property %q: %w", name, err))
138+
p.errors = append(p.errors, errors.Newf("failed to parse property %q: %w", name, err))
140139
continue
141140
}
142141
res[name] = p.parseSchema(&r)

0 commit comments

Comments
 (0)