# | Line 3 | Line 3 | |
---|---|---|
3 | #include <fstream> | |
4 | ||
5 | #include "ReadWrite.hpp" | |
6 | + | #include "simError.h" |
7 | ||
8 | ||
9 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
# | Line 14 | Line 15 | StatWriter::StatWriter( SimInfo* the_entry_plug ){ | |
15 | ||
16 | if( !outFile ){ | |
17 | ||
18 | < | cerr << "Could not open \"" << outName << "\" for stat output.\n"; |
19 | < | exit(8); |
18 | > | sprintf( painCave.errMsg, |
19 | > | "Could not open \"%s\" for stat output.\n", |
20 | > | outName); |
21 | > | painCave.isFatal = 1; |
22 | > | simError(); |
23 | } | |
24 | ||
25 | //outFile.setf( ios::scientific ); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |