diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go index ef0a0d439..1339ff88e 100644 --- a/pkg/downloader/manager.go +++ b/pkg/downloader/manager.go @@ -85,14 +85,14 @@ type Manager struct { // If SkipUpdate is set, this will not update the repository. func (m *Manager) Build() error { c, err := m.loadChartDir() - if c.Metadata.Dependencies == nil && m.Debug { - fmt.Print("No dependencies found to build") - return nil - } if err != nil { return err } + if c.Metadata.Dependencies == nil && m.Debug { + fmt.Print("No dependencies found to build") + return nil + } // If a lock file is found, run a build from that. Otherwise, just do // an update. lock := c.Lock