提交 e6ab6baf authored 作者: Ziye Fan's avatar Ziye Fan

make replace_validate print out the exception and reason when fails

上级 64dfffff
......@@ -272,6 +272,8 @@ class ReplaceValidate(History, Validator):
fgraph.validate()
except Exception as e:
fgraph.revert(chk)
if verbose:
print("validate failed on node %s.\n Reason: %s, %s" % (r, reason, e))
raise
if verbose:
print(reason, r, new_r)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论