Skip to content

Commit

Permalink
refine the download error message
Browse files Browse the repository at this point in the history
Signed-off-by: Lonng <heng@lonng.org>
  • Loading branch information
lonng committed Mar 9, 2020
1 parent 67211c7 commit 900673a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/mirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ L:

// check for errors
if err := resp.Err(); err != nil {
return "", errors.Trace(err)
return "", errors.Annotatef(err, "download from %s failed", url)
}

return resp.Filename, nil
Expand Down

0 comments on commit 900673a

Please sign in to comment.