mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 04:16:46 +00:00
Simplify error logging
This commit is contained in:
@@ -251,7 +251,7 @@ void PathfinderWaypoint::Load(const std::string &filename) {
|
||||
|
||||
if (strncmp(Magic, "EQEMUPATH", 9))
|
||||
{
|
||||
Log(Logs::General, Logs::Error, "Bad Magic String in .path file.");
|
||||
LogError("Bad Magic String in .path file");
|
||||
fclose(f);
|
||||
return;
|
||||
}
|
||||
@@ -271,7 +271,7 @@ void PathfinderWaypoint::Load(const std::string &filename) {
|
||||
return;
|
||||
}
|
||||
else {
|
||||
Log(Logs::General, Logs::Error, "Unsupported path file version.");
|
||||
LogError("Unsupported path file version");
|
||||
fclose(f);
|
||||
return;
|
||||
}
|
||||
@@ -306,7 +306,7 @@ void PathfinderWaypoint::LoadV2(FILE *f, const PathFileHeader &header)
|
||||
auto &node = m_impl->Nodes[i];
|
||||
if (PathNodes[i].Neighbours[j].id > MaxNodeID)
|
||||
{
|
||||
Log(Logs::General, Logs::Error, "Path Node %i, Neighbour %i (%i) out of range.", i, j, PathNodes[i].Neighbours[j].id);
|
||||
LogError("Path Node [{}], Neighbour [{}] ([{}]) out of range", i, j, PathNodes[i].Neighbours[j].id);
|
||||
m_impl->PathFileValid = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user