From 6f61d124194271499548b764d790d5eef3e60574 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 13 Jun 2017 17:46:46 +0530 Subject: [PATCH] Immediately handle error returned from importers --- cmd/dep/root_analyzer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/dep/root_analyzer.go b/cmd/dep/root_analyzer.go index 785869b996..0e9205257c 100644 --- a/cmd/dep/root_analyzer.go +++ b/cmd/dep/root_analyzer.go @@ -80,6 +80,9 @@ func (a *rootAnalyzer) importManifestAndLock(dir string, pr gps.ProjectRoot, sup if i.HasDepMetadata(dir) { a.ctx.Err.Printf("Importing configuration from %s. These are only initial constraints, and are further refined during the solve process.", i.Name()) m, l, err := i.Import(dir, pr) + if err != nil { + return nil, nil, err + } a.removeTransitiveDependencies(m) return m, l, err }