Skip to content

Commit 230ca60

Browse files
lumaxisCopilot
andauthored
Update pkg/github/server.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2aa02b2 commit 230ca60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func OptionalIntArrayParam(r mcp.CallToolRequest, p string) ([]int, error) {
202202
case int64:
203203
intSlice[i] = int(num)
204204
default:
205-
return []int{}, fmt.Errorf("parameter %s is not of type number, is %T", p, v)
205+
return []int{}, fmt.Errorf("parameter %s array element at index %d is not of type number, is %T", p, i, v)
206206
}
207207
}
208208
return intSlice, nil

0 commit comments

Comments
 (0)