We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9c5dfa commit 5a72606Copy full SHA for 5a72606
pkg/cli/init.go
@@ -158,12 +158,12 @@ func downloadAgentsFile() ([]byte, error) {
158
159
resp, err := client.Get(agentsURL)
160
if err != nil {
161
- return nil, fmt.Errorf("failed to fetch AGENTS.md: %w", err)
+ return nil, fmt.Errorf("%w", err)
162
}
163
defer resp.Body.Close()
164
165
if resp.StatusCode != http.StatusOK {
166
- return nil, fmt.Errorf("failed to fetch AGENTS.md: HTTP %d", resp.StatusCode)
+ return nil, fmt.Errorf("HTTP %d", resp.StatusCode)
167
168
169
content, err := io.ReadAll(resp.Body)
0 commit comments