In debug, show node dump after errors.

This commit is contained in:
Wilson Snyder 2013-01-14 21:37:55 -05:00
parent 7f5220a6ca
commit 66b1611649

View File

@ -1041,7 +1041,7 @@ void AstNode::v3errorEnd(ostringstream& str) const {
nsstr<<str.str();
if (debug()) {
nsstr<<endl;
nsstr<<"-node: "<<this<<endl;
nsstr<<"-node: "; ((AstNode*)this)->dump(nsstr); nsstr<<endl;
}
m_fileline->v3errorEnd(nsstr);
} else {