1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-30 07:21:12 +00:00

Don't suppress exceptions thrown while running scripts

This commit is contained in:
scrawl 2014-01-08 19:52:57 +01:00
parent 9baa1bef78
commit 154fae9f25

View File

@ -114,10 +114,8 @@ namespace MWScript
}
catch (const std::exception& e)
{
std::cerr << "execution of script " << name << " failed." << std::endl;
if (mVerbose)
std::cerr << "(" << e.what() << ")" << std::endl;
std::cerr << "Execution of script " << name << " failed:" << std::endl;
std::cerr << e.what() << std::endl;
iter->second.first.clear(); // don't execute again.
}