Moved the logging after error

Signed-off-by: Vaibhav Sharma <17532va@gmail.com>
pull/11749/head
Vaibhav Sharma 3 years ago
parent f54886a614
commit 767eb92f5b

@ -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

Loading…
Cancel
Save