Fix printed string showed when file opening fails
This commit is contained in:
@@ -81,6 +81,7 @@ BayesBallGraph::exportToGraphViz (const char* fileName)
|
||||
std::ofstream out (fileName);
|
||||
if (!out.is_open()) {
|
||||
std::cerr << "Error: couldn't open file '" << fileName << "'." ;
|
||||
std::cerr << std::endl;
|
||||
return;
|
||||
}
|
||||
out << "digraph {" << std::endl;
|
||||
|
Reference in New Issue
Block a user