From 18b9cbf4a6091220025d8a880042a53c218bc68e Mon Sep 17 00:00:00 2001 From: Arto Simonyan Date: Sun, 15 Dec 2024 04:15:56 +0200 Subject: [PATCH] Adjust pather error (#577) --- internal/action/step/move.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/action/step/move.go b/internal/action/step/move.go index fcf16a9f6..6bcdb2160 100644 --- a/internal/action/step/move.go +++ b/internal/action/step/move.go @@ -2,6 +2,7 @@ package step import ( "errors" + "fmt" "math" "time" @@ -80,7 +81,7 @@ func MoveTo(dest data.Position) error { return nil } - return errors.New("path could not be calculated, maybe there is an obstacle or a flying platform (arcane sanctuary)") + return errors.New("path could not be calculated. Current area: [" + ctx.Data.PlayerUnit.Area.Area().Name + "]. Trying to path to Destination: [" + fmt.Sprintf("%d,%d", dest.X, dest.Y) + "]") } if distance <= minDistanceToFinishMoving || len(path) <= minDistanceToFinishMoving || len(path) == 0 { return nil