Codechange: catch script exceptions by reference

This commit is contained in:
glx
2019-05-15 21:14:13 +02:00
committed by glx22
parent a82e7ec281
commit 09004f3697
3 changed files with 12 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ bool ScriptScanner::AddFile(const char *filename, size_t basepath_length, const
this->ResetEngine();
try {
this->engine->LoadScript(filename);
} catch (Script_FatalError e) {
} catch (Script_FatalError &e) {
DEBUG(script, 0, "Fatal error '%s' when trying to load the script '%s'.", e.GetErrorMessage(), filename);
return false;
}