1
0
mirror of synced 2026-02-12 04:45:57 +00:00

Merge pull request #576 from sylr/fix-typo

Fix typo in manifests download error message
This commit is contained in:
Hidde Beydals
2020-12-10 11:13:26 +01:00
committed by GitHub

View File

@@ -51,12 +51,12 @@ func fetch(ctx context.Context, url, version, dir string) error {
// check response
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("faild to download manifests.tar.gz from %s, status: %s", ghURL, resp.Status)
return fmt.Errorf("failed to download manifests.tar.gz from %s, status: %s", ghURL, resp.Status)
}
// extract
if _, err = untar.Untar(resp.Body, dir); err != nil {
return fmt.Errorf("faild to untar manifests.tar.gz from %s, error: %w", ghURL, err)
return fmt.Errorf("failed to untar manifests.tar.gz from %s, error: %w", ghURL, err)
}
return nil