if a file cannot be found print that preamble instead of just the filename

This commit is contained in:
Dane Springmeyer 2013-11-04 16:56:41 -08:00
parent ba12e31280
commit dc960f30f5

View File

@ -65,7 +65,7 @@ namespace boost {
if(boost::filesystem::is_regular_file(input_string)) {
v = boost::any(boost::filesystem::path(input_string));
} else {
throw OSRMException(input_string);
throw OSRMException("File does not exist: " + input_string);
}
}
}