Fix incorrect exception types

This commit is contained in:
sfan5 2018-10-20 22:38:09 +02:00
parent f909304e1e
commit 657499e981
2 changed files with 2 additions and 2 deletions

@ -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;
}
}

@ -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;
}