Skip to content

Commit

Permalink
Fix incorrect exception types
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Oct 20, 2018
1 parent f909304 commit 657499e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/util.h
Expand Up @@ -10,7 +10,7 @@ inline std::string read_setting_default(const std::string &name, std::istream &i
{
try {
return read_setting(name, is);
} catch(std::runtime_error e) {
} catch(std::runtime_error &e) {
return def;
}
}
Expand Down
2 changes: 1 addition & 1 deletion mapper.cpp
Expand Up @@ -221,7 +221,7 @@ int main(int argc, char *argv[])
generator.parseColorsFile(colors);
generator.generate(input, output);

} catch(std::runtime_error e) {
} catch(std::runtime_error &e) {
std::cerr << "Exception: " << e.what() << std::endl;
return 1;
}
Expand Down

0 comments on commit 657499e

Please sign in to comment.