This commit is contained in:
Zhouxiguo 2021-04-23 01:06:08 +08:00
parent 2c78d862a3
commit 54a54714cd
2 changed files with 5 additions and 1 deletions

3
docs/test.http Normal file
View File

@ -0,0 +1,3 @@
GET http://localhost:5000/route/v1/driving/120.5579925,31.2905084;120.5269224,31.3112249?steps=true HTTP/1.1
-Werror=extra

View File

@ -15,7 +15,8 @@ bool IOConfig::IsValid() const
bool success = true;
for (auto &fileName : required_input_files)
{
if (!boost::filesystem::is_regular_file({base_path.string() + fileName.string()}))
boost::system::error_code ec;
if (!boost::filesystem::is_regular_file({base_path.string() + fileName.string()},ec))
{
util::Log(logWARNING) << "Missing/Broken File: " << base_path.string()
<< fileName.string();