mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 08:47:17 +01:00
Update Core.cpp
This commit is contained in:
parent
1969d1e624
commit
ecef038f1a
@ -770,7 +770,7 @@ bool Core::LoadScript(const SQChar * filepath, bool delay)
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
LogFtl("Unable to compile: %s", path.c_str());
|
||||
LogFtl("Unable to compile (%s) exception caught: %s", path.c_str(), e.what());
|
||||
// Remove the script container since it's invalid
|
||||
m_Scripts.pop_back();
|
||||
// Failed to compile properly
|
||||
@ -786,7 +786,7 @@ bool Core::LoadScript(const SQChar * filepath, bool delay)
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
LogFtl("Unable to execute: %s", path.c_str());
|
||||
LogFtl("Unable to execute (%s) exception caught: %s", path.c_str(), e.what());
|
||||
// Remove the script container since it's invalid
|
||||
m_Scripts.pop_back();
|
||||
// Failed to execute properly
|
||||
@ -884,7 +884,7 @@ bool Core::DoScripts(Scripts::iterator itr, Scripts::iterator end)
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
LogFtl("Unable to compile: %s", (*itr).mPath.c_str());
|
||||
LogFtl("Unable to compile (%s) exception caught: %s", (*itr).mPath.c_str(), e.what());
|
||||
// Failed to execute properly
|
||||
return false;
|
||||
}
|
||||
@ -904,7 +904,7 @@ bool Core::DoScripts(Scripts::iterator itr, Scripts::iterator end)
|
||||
}
|
||||
catch (const std::exception & e)
|
||||
{
|
||||
LogFtl("Unable to execute: %s", (*itr).mPath.c_str());
|
||||
LogFtl("Unable to execute (%s) exception caught: %s", (*itr).mPath.c_str(), e.what());
|
||||
// Failed to execute properly
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user