提交 d25d8845 编写于 作者: A Aaron Xiao 提交者: Jiangtao Hu

HDMap: Fallback to a default map path if none candidates exist.

上级 50abaf96
......@@ -33,8 +33,10 @@ std::string FindFirstExist(const std::string& dir, const std::string& files) {
return file_path;
}
}
AERROR << "No existing file found in " << dir << "/" << files;
return "";
AERROR << "No existing file found in " << dir << "/" << files << ". "
"Fallback to first candidate as default result.";
CHECK(!candidates.empty()) << "Please specify at least one map.";
return apollo::common::util::StrCat(FLAGS_map_dir, "/", candidates[0]);
}
} // namespace
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册