Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Align error wording with repo convention
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
  • Loading branch information
SamMorrowDrums and Copilot committed May 19, 2026
commit 8efe6ec0edf78693058c806b79ab127c5ed6a662
2 changes: 1 addition & 1 deletion pkg/github/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func NewServer(version, name, title string, opts *mcp.ServerOptions) *mcp.Server
func CompletionsHandler(getClient GetClientFn) func(ctx context.Context, req *mcp.CompleteRequest) (*mcp.CompleteResult, error) {
return func(ctx context.Context, req *mcp.CompleteRequest) (*mcp.CompleteResult, error) {
if req == nil || req.Params == nil || req.Params.Ref == nil {
return nil, fmt.Errorf("invalid request: missing ref parameter")
return nil, fmt.Errorf("missing required parameter: ref")
}
switch req.Params.Ref.Type {
case "ref/resource":
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func TestCompletionsHandler_RejectsMissingRef(t *testing.T) {
result, err := handler(context.Background(), tc.req)
require.Error(t, err)
assert.Nil(t, result)
assert.Contains(t, err.Error(), "missing ref parameter")
assert.Contains(t, err.Error(), "missing required parameter: ref")
})
}
}
Loading