Skip to content
Snippets Groups Projects
Unverified Commit e86cf372 authored by Sylvestre Ledru's avatar Sylvestre Ledru Committed by GitHub
Browse files

rekor-cli: show the url in case of error (#581)


Otherwise, the error:
`
error retrieving external entities: error received while fetching artifact: 404 Not Found
`
Which isn't great for debugging

Signed-off-by: default avatarSylvestre Ledru <sylvestre@debian.org>
parent 6d95ef97
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ func FileOrURLReadCloser(ctx context.Context, url string, content []byte) (io.Re
return nil, err
}
if resp.StatusCode < 200 || resp.StatusCode > 299 {
return nil, fmt.Errorf("error received while fetching artifact: %v", resp.Status)
return nil, fmt.Errorf("error received while fetching artifact '%v': %v", url, resp.Status)
}
dataReader = resp.Body
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment