Add exceptions for missing input files
This commit is contained in:
@@ -91,6 +91,9 @@ int main(int argc, char* argv[])
|
||||
states_filename << filename_base.str() << ".states";
|
||||
std::ifstream states_file;
|
||||
states_file.open(states_filename.str());
|
||||
if (states_file.fail()) {
|
||||
throw AbacusException("Cound not open the states file " + states_filename.str());
|
||||
}
|
||||
states_file >> std::setprecision(std::numeric_limits<Real>::digits10 + 1);
|
||||
|
||||
std::stringstream holeIx2_filename;
|
||||
|
||||
Reference in New Issue
Block a user