mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PlayerDump: more travis
This commit is contained in:
@@ -431,7 +431,7 @@ inline bool ValidateFields(TableStruct const& ts, std::string const& str, size_t
|
||||
s = str.find("` (`");
|
||||
if (s == std::string::npos)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line %u) dump format not recognized.", lineNumber);
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line " UI64FMTD ") dump format not recognized.", lineNumber);
|
||||
return false;
|
||||
}
|
||||
s += 4;
|
||||
@@ -440,7 +440,7 @@ inline bool ValidateFields(TableStruct const& ts, std::string const& str, size_t
|
||||
std::string::size_type e = str.find(_TABLE_SIM_, s);
|
||||
if (e == std::string::npos || valPos == std::string::npos)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line %u) unexpected end of line", lineNumber);
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line " UI64FMTD ") unexpected end of line", lineNumber);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -450,7 +450,7 @@ inline bool ValidateFields(TableStruct const& ts, std::string const& str, size_t
|
||||
int32 columnIndex = GetColumnIndexByName(ts, column);
|
||||
if (columnIndex == -1)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line %u) unknown column name `%s` for table `%s`, aborting due to incompatible DB structure.", lineNumber, column.c_str(), ts.TableName.c_str());
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line " UI64FMTD ") unknown column name `%s` for table `%s`, aborting due to incompatible DB structure.", lineNumber, column.c_str(), ts.TableName.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -845,7 +845,7 @@ DumpReturn PlayerDumpReader::LoadDump(std::string const& file, uint32 account, s
|
||||
std::string tn = GetTableName(line);
|
||||
if (tn.empty())
|
||||
{
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line %u) Can't extract table name!", lineNumber);
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line " UI64FMTD ") Can't extract table name!", lineNumber);
|
||||
return DUMP_FILE_BROKEN;
|
||||
}
|
||||
|
||||
@@ -862,7 +862,7 @@ DumpReturn PlayerDumpReader::LoadDump(std::string const& file, uint32 account, s
|
||||
|
||||
if (i == DUMP_TABLE_COUNT)
|
||||
{
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line %u) Unknown table: `%s`!", lineNumber, tn.c_str());
|
||||
TC_LOG_ERROR("misc", "LoadPlayerDump: (line " UI64FMTD ") Unknown table: `%s`!", lineNumber, tn.c_str());
|
||||
return DUMP_FILE_BROKEN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user