mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 06:58:07 +00:00
Catch exception by reference.
Issue found by cppcheck.
This commit is contained in:
parent
84047d77e9
commit
6e33f65459
@ -38,7 +38,7 @@ const config cutter::load_config(const std::string &filename)
|
||||
try {
|
||||
scoped_istream stream = preprocess_file(conf_string);
|
||||
read(res, *stream);
|
||||
} catch(config::error err) {
|
||||
} catch(config::error& err) {
|
||||
throw exploder_failure("Unable to load the configuration for the file " + filename + ": "+ err.message);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user