Better exception

release/4.3a0
dellaert 2014-05-31 16:24:25 -04:00
parent a74d82ac71
commit 5aa9f42875
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ pair<NonlinearFactorGraph::shared_ptr, Values::shared_ptr> load2D(
cout << "Will try to read " << filename << endl;
ifstream is(filename.c_str());
if (!is)
throw std::invalid_argument("load2D: can not find the file!");
throw std::invalid_argument("load2D: can not find file " + filename);
Values::shared_ptr initial(new Values);
NonlinearFactorGraph::shared_ptr graph(new NonlinearFactorGraph);