Skip to content

Commit

Permalink
Report error, if it can't create a package
Browse files Browse the repository at this point in the history
Fix kamilchm#74 by printing the returned error, too.
  • Loading branch information
dingxiangfei2009 authored Oct 11, 2018
1 parent 62871dd commit 85e6125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion save.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func save(pkgName, goPath, nixFile string, depsFile string, testImports bool, bu
for _, dep := range deps {
p, err := NewPackage(dep, goPath)
if err != nil {
return fmt.Errorf("Can't create package for: %v", dep)
return fmt.Errorf("Can't create package for: %v, %v", dep, err)
}
if p == nil || p.VcsRepo == pkg.VcsRepo {
continue
Expand Down

0 comments on commit 85e6125

Please sign in to comment.