Skip to content

Commit

Permalink
minor: better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Oct 23, 2012
1 parent 874038b commit 55701a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/python/moa/plugin/job/versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ def _run_cl(cl):
P = sp.Popen(cl, stdout=sp.PIPE, stderr=sp.PIPE, shell=True)
o, e = P.communicate()
if e:
moa.ui.warn("error tracking version information")
moa.ui.warn("'%s' gave an error" % cl)
moa.ui.warn("Version or prerequisite problem with:")
moa.ui.warn(" '%s'" % cl)
moa.ui.warn("Error message is:")
moa.ui.warn("%s" % e)

return o.strip().split("\n")[0]


Expand Down

0 comments on commit 55701a3

Please sign in to comment.