You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnutils.NewToolResultError(fmt.Sprintf("failed to marshal matching files: %s", err)), nil, nil
646
-
}
647
-
resolvedRefs, err:=json.Marshal(rawOpts)
648
-
iferr!=nil {
649
-
returnutils.NewToolResultError(fmt.Sprintf("failed to marshal resolved refs: %s", err)), nil, nil
650
-
}
651
-
returnutils.NewToolResultError(fmt.Sprintf("Resolved potential matches in the repository tree (resolved refs: %s, matching files: %s), but the raw content API returned an unexpected status code %d.", string(resolvedRefs), string(matchingFilesJSON), rawAPIResponseCode)), nil, nil
652
-
}
653
-
returnutils.NewToolResultError("Failed to get file contents. The path does not point to a file or directory, or the file does not exist in the repository."), nil, nil
returnutils.NewToolResultError(fmt.Sprintf("failed to marshal matching files: %s", err)), nil, nil
2100
+
}
2101
+
resolvedRefs, err:=json.Marshal(rawOpts)
2102
+
iferr!=nil {
2103
+
returnutils.NewToolResultError(fmt.Sprintf("failed to marshal resolved refs: %s", err)), nil, nil
2104
+
}
2105
+
ifrawAPIResponseCode>0 {
2106
+
returnutils.NewToolResultText(fmt.Sprintf("Resolved potential matches in the repository tree (resolved refs: %s, matching files: %s), but the content API returned an unexpected status code %d.", string(resolvedRefs), string(matchingFilesJSON), rawAPIResponseCode)), nil, nil
2107
+
}
2108
+
returnutils.NewToolResultText(fmt.Sprintf("Resolved potential matches in the repository tree (resolved refs: %s, matching files: %s).", string(resolvedRefs), string(matchingFilesJSON))), nil, nil
2109
+
}
2110
+
returnutils.NewToolResultError("Failed to get file contents. The path does not point to a file or directory, or the file does not exist in the repository."), nil, nil
0 commit comments