mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Inability to write a file is typically user, not internal error.
This commit is contained in:
+2
-2
@@ -136,8 +136,8 @@ public:
|
||||
void dump(const string& nameComment="linkdot", bool force=false) {
|
||||
if (debug()>=6 || force) {
|
||||
string filename = v3Global.debugFilename(nameComment)+".txt";
|
||||
const vl_unique_ptr<ofstream> logp (V3File::new_ofstream(filename));
|
||||
if (logp->fail()) v3fatalSrc("Can't write "<<filename);
|
||||
const vl_unique_ptr<std::ofstream> logp (V3File::new_ofstream(filename));
|
||||
if (logp->fail()) v3fatal("Can't write "<<filename);
|
||||
ostream& os = *logp;
|
||||
m_syms.dump(os);
|
||||
bool first = true;
|
||||
|
||||
Reference in New Issue
Block a user