show name of missing .ini file

This commit is contained in:
Emil Tin 2013-08-07 21:30:27 +02:00
parent a609a1c6c2
commit 75cdefa4fe

View File

@ -36,7 +36,8 @@ public:
IniFile(const char * configFile) {
std::ifstream config( configFile );
if(!config) {
throw OSRMException("[config] .ini not found");
std::string str = "[config] " + std::string(configFile) + " not found";
throw OSRMException(str.c_str());
}
std::string line;