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/player.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/game/player.go') diff --git a/go/game/player.go b/go/game/player.go index a69f2cd3..802cafeb 100644 --- a/go/game/player.go +++ b/go/game/player.go @@ -153,14 +153,14 @@ func (p *Player) PromptHandCardSelection(min, max int) []*Card { case *TargetSelection: err := a.CheckTargets(p.gameState) if err != nil { - log.Fatalf("Invalid hand card selection: %v", err) + log.Panicf("Invalid hand card selection: %v", err) } return utils.InterfaceSliceToTypedSlice[*Card](a.Target().sel) case *PassPriority: return nil default: - log.Fatalf("Unexpected response type %T for hand card selection", a) + log.Panicf("Unexpected response type %T for hand card selection", a) } return nil } -- cgit v1.2.3