RouteGuide example: Abort if database file not found (#29398)

pull/29406/head
Yash Tibrewal 3 years ago committed by GitHub
parent 214e3f3622
commit 7fb4998029
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      examples/cpp/route_guide/helper.cc

@ -53,7 +53,7 @@ std::string GetDbFileContent(int argc, char** argv) {
std::ifstream db_file(db_path);
if (!db_file.is_open()) {
std::cout << "Failed to open " << db_path << std::endl;
return "";
abort();
}
std::stringstream db;
db << db_file.rdbuf();

Loading…
Cancel
Save