From 9efb265ce3818016ed36ecfa0fc3ce86c5c1cf96 Mon Sep 17 00:00:00 2001 From: phanidevavarapu <52188131+phanidevavarapu@users.noreply.github.com> Date: Tue, 5 Sep 2023 07:26:57 -0700 Subject: [PATCH] Added appropriate error message on package installation failure (#197) --- client/internal/packagessyncer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/packagessyncer.go b/client/internal/packagessyncer.go index f138baa3..4c13308d 100644 --- a/client/internal/packagessyncer.go +++ b/client/internal/packagessyncer.go @@ -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 }