Skip to content

Commit 7a76fbb

Browse files
committed
Address Copilot comment
1 parent 5b60e6b commit 7a76fbb

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
@@ -721,7 +721,7 @@ func GetFileContents(t translations.TranslationHelperFunc) inventory.ServerTool
721721
pathParts := strings.Split(path, "/")
722722
resourceURI, err := expandRepoResourceURI(owner, repo, sha, ref, pathParts)
723723
if err != nil {
724-
return nil, nil, fmt.Errorf("failed to create resource URI: %w", err)
724+
return utils.NewToolResultError("failed to get GitHub raw content client"), nil, nil
725725
}
726726

727727
// main branch ref passed in ref parameter but it doesn't exist - default branch was used

0 commit comments

Comments
 (0)