write_sdc throw if open fails
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
b7fa990328
commit
e2e1199d92
|
|
@ -181,6 +181,8 @@ SdfWriter::write(const char *filename,
|
||||||
arc_delay_max_index_ = dcalc_ap->index();
|
arc_delay_max_index_ = dcalc_ap->index();
|
||||||
|
|
||||||
stream_ = gzopen(filename, gzip ? "wb" : "wT");
|
stream_ = gzopen(filename, gzip ? "wb" : "wT");
|
||||||
|
if (stream_ == nullptr)
|
||||||
|
throw FileNotWritable(filename);
|
||||||
|
|
||||||
writeHeader(default_lib, no_timestamp, no_version);
|
writeHeader(default_lib, no_timestamp, no_version);
|
||||||
writeInterconnects();
|
writeInterconnects();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue