Skip to content

Commit b35e79c

Browse files
committed
Add an errror warning if project file (.json or .conf) is not found or corrupted.
1 parent cc29263 commit b35e79c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/configParser.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ namespace config
224224
}
225225
else
226226
{
227-
throw;
227+
std::string message = "Project file '"+name+"' not found or corrupted";
228+
Fatal_Error(message.c_str())
229+
// throw;
228230
}
229231
gmsh::logger::write("==================================================");
230232
gmsh::logger::write("Simulation parameters: ");
@@ -430,7 +432,9 @@ namespace config
430432
}
431433
else
432434
{
433-
throw;
435+
std::string message = "Project file '"+name+"' not found or corrupted";
436+
Fatal_Error(message.c_str())
437+
// throw;
434438
}
435439
gmsh::logger::write("==================================================");
436440
gmsh::logger::write("Simulation parameters: ");

0 commit comments

Comments
 (0)