Skip to content

Commit

Permalink
Added appropriate error message on package installation failure (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanidevavarapu authored Sep 5, 2023
1 parent eb2f28d commit 9efb265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/internal/packagessyncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (s *packagesSyncer) downloadFile(ctx context.Context, pkgName string, file

err = s.localState.UpdateContent(ctx, pkgName, resp.Body, file.ContentHash)
if err != nil {
return fmt.Errorf("cannot download file from %s: %v", file.DownloadUrl, err)
return fmt.Errorf("failed to install/update the package %s downloaded from %s: %v", pkgName, file.DownloadUrl, err)
}
return nil
}
Expand Down

0 comments on commit 9efb265

Please sign in to comment.