mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +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 {
|
try {
|
||||||
return read_setting(name, is);
|
return read_setting(name, is);
|
||||||
} catch(std::runtime_error e) {
|
} catch(std::runtime_error &e) {
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ int main(int argc, char *argv[])
|
|||||||
generator.parseColorsFile(colors);
|
generator.parseColorsFile(colors);
|
||||||
generator.generate(input, output);
|
generator.generate(input, output);
|
||||||
|
|
||||||
} catch(std::runtime_error e) {
|
} catch(std::runtime_error &e) {
|
||||||
std::cerr << "Exception: " << e.what() << std::endl;
|
std::cerr << "Exception: " << e.what() << std::endl;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user