diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index 46c4d4663..b6c052c66 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -272,7 +272,7 @@ func (m *Manager) downloadAll(deps []*chart.Dependency) error { // callers race on the same directory. tmpPath, err := os.MkdirTemp(m.ChartPath, fmt.Sprintf("tmpcharts-%d-*", os.Getpid())) if err != nil { - return err + return fmt.Errorf("unable to create temporary directory in '%s': %w", m.ChartPath, err) } defer os.RemoveAll(tmpPath)