use const references in catch blocks

This commit is contained in:
moneromooo-monero 2017-03-18 12:56:07 +00:00
parent c642d3224c
commit d023831327
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
5 changed files with 13 additions and 13 deletions

View file

@ -168,7 +168,7 @@ namespace command_line
{
return parser();
}
catch (std::exception& e)
catch (const std::exception& e)
{
std::cerr << "Failed to parse arguments: " << e.what() << std::endl;
std::cerr << desc << std::endl;