1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

rwgame: catch boost::exception

Boost.program_options throws boost::exception on macosx's xcode
This commit is contained in:
Anonymous Maarten 2019-01-05 03:23:14 +01:00
parent 548ff80909
commit 1ccec04148

View File

@ -121,6 +121,10 @@ std::optional<RWArgConfigLayer> RWArgumentParser::parseArguments(int argc, const
} catch (po::error& ex) {
std::cerr << "Error parsing arguments: " << ex.what() << std::endl;
return std::nullopt;
} catch (boost::exception& ex) {
std::cerr << "A boost::exception object was thrown (bug in Boost.Program_options?).\n";
std::cerr << "unknown error\n";
return std::nullopt;
}
RWArgConfigLayer layer;