Skip to content

Commit

Permalink
Making the error handling a little prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettRyland committed Aug 10, 2016
1 parent b7a005c commit 1e4a3a9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ int main(int argc, char *argv[])
throw std::runtime_error("Unknown flag " + var);
}
}
}
catch (const std::exception& e)
{
} catch (const std::exception& e) {
std::cout << e.what() << ", aborting." << std::endl;
return 1;
//throw std::runtime_error("Unable to parse input arguments.");
} catch(...) {
throw std::runtime_error("Unable to parse input arguments.");
}

float hint = Waves::g_waves.Initialise(rx, ry, dt, IC, BC);
Expand Down

0 comments on commit 1e4a3a9

Please sign in to comment.