From 9bc206a2f0e9586441cb2461614a32647f0e6acf Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 21 Jan 2014 10:11:45 +0000 Subject: [PATCH] Minor pathfinder error message changes Added missing spaces such that the confusing 'startposIndex' and 'stopposIndex' do not appear. Also prefixed those error messages with 'pathfinder:' so the source of the error is more obvious. --- src/pathfinder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pathfinder.cpp b/src/pathfinder.cpp index 3e8a73ac2..f1a2c3890 100644 --- a/src/pathfinder.cpp +++ b/src/pathfinder.cpp @@ -263,13 +263,13 @@ std::vector pathfinder::get_Path(ServerEnvironment* env, path_gridnode& endpos = getIndexElement(EndIndex); if (!startpos.valid) { - ERROR_TARGET << "invalid startpos" << + ERROR_TARGET << "pathfinder:invalid startpos " << "Index: " << PPOS(StartIndex) << "Realpos: " << PPOS(getRealPos(StartIndex)) << std::endl; return retval; } if (!endpos.valid) { - ERROR_TARGET << "invalid stoppos" << + ERROR_TARGET << "pathfinder:invalid stoppos " << "Index: " << PPOS(EndIndex) << "Realpos: " << PPOS(getRealPos(EndIndex)) << std::endl; return retval;