Skip to content

Commit 809a8fc

Browse files
committed
adding error message
2 parents 5390807 + d786306 commit 809a8fc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

internal/ghmcp/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,12 @@ func (t *bearerAuthTransport) RoundTrip(req *http.Request) (*http.Response, erro
469469

470470
// cleanToolsets handles special toolset keywords in the enabled toolsets list:
471471
// - Duplicates are removed from the result.
472+
<<<<<<< HEAD
472473
// - Removes whitespaces
473474
// - Validates toolset names and returns invalid ones separately
475+
=======
476+
// - Removes whitespace
477+
>>>>>>> d78630632e447a488309d9c75301a1d23f14342e
474478
// - "all": Returns ["all"] immediately, ignoring all other toolsets (unless dynamicToolsets is true)
475479
// - "default": Replaces with the actual default toolset IDs from GetDefaultToolsetIDs()
476480
// When dynamicToolsets is true, filters out "all" from the enabled toolsets.

internal/ghmcp/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func TestCleanToolsets(t *testing.T) {
187187
},
188188
// Whitespace test cases
189189
{
190-
name: "whitespace check- leading and trailing whitespace on regular toolsets",
190+
name: "whitespace check - leading and trailing whitespace on regular toolsets",
191191
input: []string{" actions ", " gists ", "notifications"},
192192
dynamicToolsets: false,
193193
expected: []string{"actions", "gists", "notifications"},

0 commit comments

Comments
 (0)