Catching any left-over exception that may occur during preprocessing (stxxl)

This commit is contained in:
Dennis Luxen 2013-06-24 16:16:43 -04:00
parent 25b8b37f00
commit 03e3673dbb

View File

@ -56,6 +56,7 @@ std::vector<NodeID> trafficLightNodes;
std::vector<ImportEdge> edgeList;
int main (int argc, char *argv[]) {
try {
if(argc < 3) {
ERR("usage: " << std::endl << argv[0] << " <osrm-data> <osrm-restrictions> [<profile>]");
}
@ -263,5 +264,8 @@ int main (int argc, char *argv[]) {
//cleanedEdgeList.clear();
_nodes.clear();
INFO("finished preprocessing");
} catch (std::exception &e) {
ERR("Exception occured: " << e.what());
}
return 0;
}