提交 fdcc463e authored 作者: Frederic's avatar Frederic

better error message

上级 ffd29adf
...@@ -206,8 +206,7 @@ def filter_compiledir(path): ...@@ -206,8 +206,7 @@ def filter_compiledir(path):
if os.path.exists(init_file): if os.path.exists(init_file):
pass # has already been created pass # has already been created
else: else:
if os.path.exists(path): e.args += ('%s exist? %s' % (path, os.path.exists(path)),)
e.args += ('%s does not exist..' % path,)
raise raise
return path return path
......
...@@ -59,7 +59,8 @@ try: ...@@ -59,7 +59,8 @@ try:
if os.path.exists(init_file): if os.path.exists(init_file):
pass # has already been created pass # has already been created
else: else:
e.args += ('%s exist?' % os.path.exists(location),) e.args += ('%s exist? %s' % (location,
os.path.exists(location)),)
raise raise
_need_reload = False _need_reload = False
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论