提交 39a62260 authored 作者: Frederic's avatar Frederic

More detailed error.

上级 4c70aa6c
...@@ -88,8 +88,9 @@ def run_mercurial_command(hg_command): ...@@ -88,8 +88,9 @@ def run_mercurial_command(hg_command):
hg_command_tuple.insert(0, hg_executable) hg_command_tuple.insert(0, hg_executable)
try: try:
hg_subprocess = Popen(hg_command_tuple, stdout=PIPE, stderr=PIPE) hg_subprocess = Popen(hg_command_tuple, stdout=PIPE, stderr=PIPE)
except OSError: except OSError, e:
print >> sys.stderr, "Can't find the hg executable!" print >> sys.stderr, "Can't find the hg executable!"
print e
sys.exit(1) sys.exit(1)
hg_out, hg_err = hg_subprocess.communicate() hg_out, hg_err = hg_subprocess.communicate()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论