Skip to content

Commit 5c8cc69

Browse files
committed
fix usage of fmt.Errorf
1 parent d129dcd commit 5c8cc69

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
@@ -3,7 +3,6 @@ package mcp
33
import (
44
_ "embed"
55
"encoding/json"
6-
"fmt"
76
"strings"
87

98
"github.com/sourcegraph/sourcegraph/lib/errors"
@@ -152,7 +151,7 @@ func (d *decoder) decodeProperties(props map[string]json.RawMessage) map[string]
152151
for name, raw := range props {
153152
var r RawSchema
154153
if err := json.Unmarshal(raw, &r); err != nil {
155-
d.errors = append(d.errors, fmt.Errorf("failed to parse property %q: %w", name, err))
154+
d.errors = append(d.errors, errors.Newf("failed to parse property %q: %w", name, err))
156155
continue
157156
}
158157
res[name] = d.decodeSchema(&r)

0 commit comments

Comments
 (0)