Catch exception by reference.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2011-02-27 15:20:14 +00:00
parent 84047d77e9
commit 6e33f65459

View File

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