diff options
author | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-10-09 00:49:02 (GMT) |
commit | 087b9bb7c3462894acd5d527f32c4b43bedf6fdb (patch) | |
tree | 236093cb5760e0577961594835c40b194be1e446 /src/openscad.cc | |
parent | 750e1f9f649e0908bf1d89c9e31d61ef0f56fe7f (diff) |
Catch exceptions as const references. Related to #204
Diffstat (limited to 'src/openscad.cc')
-rw-r--r-- | src/openscad.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openscad.cc b/src/openscad.cc index 49c39da..df7adb3 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -153,7 +153,7 @@ int main(int argc, char **argv) try { po::store(po::command_line_parser(argc, argv).options(all_options).positional(p).run(), vm); } - catch(std::exception &e) { // Catches e.g. unknown options + catch(const std::exception &e) { // Catches e.g. unknown options fprintf(stderr, "%s\n", e.what()); help(argv[0]); } |