forked from mirror/openmw-tes3mp
improved error reporting
This commit is contained in:
parent
2016ff773f
commit
2d8a78726d
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@
|
||||||
|
|
||||||
void CSVWorld::ScriptErrorTable::report (const std::string& message, const Compiler::TokenLoc& loc, Type type)
|
void CSVWorld::ScriptErrorTable::report (const std::string& message, const Compiler::TokenLoc& loc, Type type)
|
||||||
{
|
{
|
||||||
addMessage (message, type==Compiler::ErrorHandler::WarningMessage ?
|
std::ostringstream stream;
|
||||||
|
stream << message << " (" << loc.mLiteral << ")";
|
||||||
|
|
||||||
|
addMessage (stream.str(), type==Compiler::ErrorHandler::WarningMessage ?
|
||||||
CSMDoc::Message::Severity_Warning : CSMDoc::Message::Severity_Error, loc.mLine);
|
CSMDoc::Message::Severity_Warning : CSMDoc::Message::Severity_Error, loc.mLine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue