Skip to content

Commit 88a594e

Browse files
authored
improve response/feedback loop with better error messages (#1414)
1 parent e95d8ee commit 88a594e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func GetFileContents(getClient GetClientFn, getRawClient raw.GetRawClientFn, t t
560560
), nil
561561
}
562562
if fileContent == nil || fileContent.SHA == nil {
563-
return mcp.NewToolResultError("file content SHA is nil"), nil
563+
return mcp.NewToolResultError("file content SHA is nil, if a directory was requested, path parameters should end with a trailing slash '/'"), nil
564564
}
565565
fileSHA = *fileContent.SHA
566566

0 commit comments

Comments
 (0)