Closed clutchski closed 9 years ago
Just realized that sync returns with 0 error code if one of the installs fail. Maybe it's just easier to call perror
with the output and then it's consistent with the rest of the tool? Up to you.
I think it makes sense to always print the output if there was an error. Yeah, if an install fails it should return non-0
Ok. Will submit another one.
This adds a verbose option to the sync cmd, which prints the contents of any install errors.
For example:
It looks like the
syncPkg
errors are already well-covered so I didn't add anything there, but if you think there's something to add, I can. Another option is to always print the actual error contents, since you'd pretty much always want to see them.