sgotti / glide-vc

Glide vendor cleaner
MIT License
53 stars 10 forks source link

dont swallow [ERROR] from stderr, if glide list exits non-zero #29

Open lalyos opened 6 years ago

lalyos commented 6 years ago

when glide list exits with non-zero, the user gets only the following output

$ glide-vc
exit status 1

which doesn't really helps.

with the suggested changes the user would see the causing error:

$ glide-vc
[ERROR] Error scanning github.com/bmatcuk/doublestar: cannot find package "." in:
[ERROR]         vendor/github.com/bmatcuk/doublestar
[ERROR] Error listing dependencies: Error resolving imports
exit status 1