mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-13 22:20:29 +01:00
Fix incorrect exception types
This commit is contained in:
parent
f909304e1e
commit
657499e981
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user