From dc960f30f5ef1d6480952020cd2faff2ce56f275 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 4 Nov 2013 16:56:41 -0800 Subject: [PATCH] if a file cannot be found print that preamble instead of just the filename --- Util/ProgramOptions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/ProgramOptions.h b/Util/ProgramOptions.h index a9fc1a1fc..934dd1a17 100644 --- a/Util/ProgramOptions.h +++ b/Util/ProgramOptions.h @@ -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); } } }