From f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 15 Feb 2023 16:41:29 +0100 Subject: replace Fatalf with Panicf Panicf includes a stacktrace and causes a debugger to halt. --- go/game/unit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/unit.go') diff --git a/go/game/unit.go b/go/game/unit.go index c6c1839a..4851a037 100644 --- a/go/game/unit.go +++ b/go/game/unit.go @@ -90,7 +90,7 @@ func (u *Unit) onUpkeep() { func (u *Unit) move(s *State, tile *Tile) { if !u.IsAvailableTile(tile) { - log.Fatalf("moving to not available tile %v", tile) + log.Panicf("moving to not available tile %v", tile) } if u.containingPerm != nil { -- cgit v1.2.3