Skip to content

Commit

Permalink
error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
r-shf committed Oct 20, 2015
1 parent 26def2c commit f1b2662
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/ConfigurationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 25,11 @@ ConfigurationManager::ConfigurationManager(const string& fname) : fileName(fname
{
cfile.open(fname, ios::in);

if (!cfile.is_open()) {
cerr << "Cannot open file " << fname << endl;
return;
}

std::string line;
while( std::getline(cfile, line) )
{
Expand Down

0 comments on commit f1b2662

Please sign in to comment.