Skip to content

Commit

Permalink
Merge branch 'update/cxxopts'
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoupey committed Sep 25, 2023
2 parents 9ffa2cf + 1bc731a commit 06e4e54
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- Account for vehicle/job compatibility in heuristic regrets values (#982)
- Slightly reduce computing times for SWAP* operator (#987)
- Refactor `RouteSplit` operator (#996)
- Update cxxopts to 3.1.1 (#997)

### Fixed

Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ int main(int argc, char** argv) {
s_to_ms * std::stof(limit_arg)));
}
} catch (const std::exception&) {
throw cxxopts::OptionException("Argument '" + limit_arg +
"' failed to parse");
throw cxxopts::exceptions::exception("Argument '" + limit_arg +
"' failed to parse");
}

if (parsed_args.count("help") != 0) {
Expand All @@ -133,7 +133,7 @@ int main(int argc, char** argv) {
std::cout << "vroom " << vroom::get_version() << "\n";
exit(0);
}
} catch (const cxxopts::OptionException& e) {
} catch (const cxxopts::exceptions::exception& e) {
// cxxopts outputs the failed parameter but no other details, so we add some
// (likely) context
const auto exc = vroom::InputException(": invalid numerical value.");
Expand Down

0 comments on commit 06e4e54

Please sign in to comment.