Fix error messages to consistently go to stderr.

This commit is contained in:
Wilson Snyder
2009-01-26 07:57:59 -05:00
parent c4e69daecd
commit 2224918730
6 changed files with 10 additions and 8 deletions
+3 -3
View File
@@ -129,9 +129,9 @@ public:
// Use only AstNode::dump instead of the virtual one, as there
// may be varp() and other cross links that are bad.
if (debug()) {
cout<<"%Error: LeakedNode"<<(it->first->backp()?"Back: ":": ");
((AstNode*)(it->first))->AstNode::dump(cout);
cout<<endl;
cerr<<"%Error: LeakedNode"<<(it->first->backp()?"Back: ":": ");
((AstNode*)(it->first))->AstNode::dump(cerr);
cerr<<endl;
V3Error::incErrors();
}
it->second |= FLAG_LEAKED;