From 75cdefa4fee8082f59b0feae0520b4af14c13bee Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Wed, 7 Aug 2013 21:30:27 +0200 Subject: [PATCH] show name of missing .ini file --- Util/IniFile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Util/IniFile.h b/Util/IniFile.h index ec01ade91..1ed0ca578 100644 --- a/Util/IniFile.h +++ b/Util/IniFile.h @@ -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;