Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Commit

Permalink
Report error, if it can't create a package
Browse files Browse the repository at this point in the history
Fix #74 by printing the returned error, too.
  • Loading branch information
dingxiangfei2009 authored and kamilchm committed Oct 19, 2018
1 parent 62871dd commit b3c792b
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 b3c792b

Please sign in to comment.