Skip to content

Commit 425ad90

Browse files
authored
Caught by reference (#13)
1 parent 54a0357 commit 425ad90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/args_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ args_parser::args_parser(int argc, char *argv[])
3131
cout << parser;
3232
throw parse_abort(EX_OK);
3333
}
34-
catch (const args::ParseError e)
34+
catch (const args::ParseError &e)
3535
{
3636
cerr << e.what() << endl;
3737
cerr << parser;
3838
throw parse_abort(EX_USAGE);
3939
}
40-
catch (const args::ValidationError e)
40+
catch (const args::ValidationError &e)
4141
{
4242
cerr << e.what() << endl;
4343
cerr << parser;

0 commit comments

Comments
 (0)