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) catch (const std::exception& e)
{ {
std::cerr << "execution of script " << name << " failed." << std::endl; std::cerr << "Execution of script " << name << " failed:" << std::endl;
std::cerr << e.what() << std::endl;
if (mVerbose)
std::cerr << "(" << e.what() << ")" << std::endl;
iter->second.first.clear(); // don't execute again. iter->second.first.clear(); // don't execute again.
} }