Remove duplicate "Error:" from some outError messages...

--HG--
branch : trunk
This commit is contained in:
click
2010-07-31 03:12:51 +02:00
parent e5881d9590
commit c298bdb662
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ extern int main(int argc, char **argv)
if (SetPriorityClass(hProcess,HIGH_PRIORITY_CLASS)) if (SetPriorityClass(hProcess,HIGH_PRIORITY_CLASS))
sLog.outString("TrinityRealm process priority class set to HIGH"); sLog.outString("TrinityRealm process priority class set to HIGH");
else else
sLog.outError("ERROR: Can't set realmd process priority class."); sLog.outError("Can't set realmd process priority class.");
sLog.outString(); sLog.outString();
} }
} }
+1 -1
View File
@@ -3947,7 +3947,7 @@ bool ChatHandler::HandleCreatePetCommand(const char* /*args*/)
if (!pet->InitStatsForLevel(creatureTarget->getLevel())) if (!pet->InitStatsForLevel(creatureTarget->getLevel()))
{ {
sLog.outError("ERROR: InitStatsForLevel() in EffectTameCreature failed! Pet deleted."); sLog.outError("InitStatsForLevel() in EffectTameCreature failed! Pet deleted.");
PSendSysMessage("Error 2"); PSendSysMessage("Error 2");
delete pet; delete pet;
return false; return false;
+1 -1
View File
@@ -191,7 +191,7 @@ typedef std::list<std::string> StoreProblemList;
static bool LoadDBC_assert_print(uint32 fsize,uint32 rsize, const std::string& filename) static bool LoadDBC_assert_print(uint32 fsize,uint32 rsize, const std::string& filename)
{ {
sLog.outError("ERROR: Size of '%s' setted by format string (%u) not equal size of C++ structure (%u).",filename.c_str(),fsize,rsize); sLog.outError("Size of '%s' setted by format string (%u) not equal size of C++ structure (%u).",filename.c_str(),fsize,rsize);
// ASSERT must fail after function call // ASSERT must fail after function call
return false; return false;
+1 -1
View File
@@ -1853,7 +1853,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
pet->Relocate(x, y, z, ang); pet->Relocate(x, y, z, ang);
if (!pet->IsPositionValid()) if (!pet->IsPositionValid())
{ {
sLog.outError("ERROR: Pet (guidlow %d, entry %d) not summoned. Suggested coordinates isn't valid (X: %f Y: %f)",pet->GetGUIDLow(),pet->GetEntry(),pet->GetPositionX(),pet->GetPositionY()); sLog.outError("Pet (guidlow %d, entry %d) not summoned. Suggested coordinates isn't valid (X: %f Y: %f)",pet->GetGUIDLow(),pet->GetEntry(),pet->GetPositionX(),pet->GetPositionY());
delete pet; delete pet;
return NULL; return NULL;
} }
+2 -2
View File
@@ -16213,11 +16213,11 @@ bool Player::LoadFromDB(uint32 guid, SqlQueryHolder *holder)
PlayerInfo const *info = objmgr.GetPlayerInfo(getRace(), getClass()); PlayerInfo const *info = objmgr.GetPlayerInfo(getRace(), getClass());
mapId = info->mapId; mapId = info->mapId;
Relocate(info->positionX,info->positionY,info->positionZ,0.0f); Relocate(info->positionX,info->positionY,info->positionZ,0.0f);
sLog.outError("ERROR: Player (guidlow %d) have invalid coordinates (X: %f Y: %f Z: %f O: %f). Teleport to default race/class locations.",guid,GetPositionX(),GetPositionY(),GetPositionZ(),GetOrientation()); sLog.outError("Player (guidlow %d) have invalid coordinates (X: %f Y: %f Z: %f O: %f). Teleport to default race/class locations.",guid,GetPositionX(),GetPositionY(),GetPositionZ(),GetOrientation());
map = sMapMgr.CreateMap(mapId, this, 0); map = sMapMgr.CreateMap(mapId, this, 0);
if (!map) if (!map)
{ {
sLog.outError("ERROR: Player (guidlow %d) has invalid default map coordinates (X: %f Y: %f Z: %f O: %f). or instance couldn't be created",guid,GetPositionX(),GetPositionY(),GetPositionZ(),GetOrientation()); sLog.outError("Player (guidlow %d) has invalid default map coordinates (X: %f Y: %f Z: %f O: %f). or instance couldn't be created",guid,GetPositionX(),GetPositionY(),GetPositionZ(),GetOrientation());
return false; return false;
} }
} }
+1 -1
View File
@@ -37,7 +37,7 @@ class ByteBufferException
void PrintPosError() const void PrintPosError() const
{ {
sLog.outError("ERROR: Attempted to %s in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") value with size: " SIZEFMTD, sLog.outError("Attempted to %s in ByteBuffer (pos: " SIZEFMTD " size: "SIZEFMTD") value with size: " SIZEFMTD,
(add ? "put" : "get"), pos, size, esize); (add ? "put" : "get"), pos, size, esize);
} }
private: private:
+1 -1
View File
@@ -311,7 +311,7 @@ int Master::Run()
if(SetPriorityClass(hProcess,HIGH_PRIORITY_CLASS)) if(SetPriorityClass(hProcess,HIGH_PRIORITY_CLASS))
sLog.outString("TrinityCore process priority class set to HIGH"); sLog.outString("TrinityCore process priority class set to HIGH");
else else
sLog.outError("ERROR: Can't set Trinityd process priority class."); sLog.outError("Can't set Trinityd process priority class.");
sLog.outString(""); sLog.outString("");
} }
} }