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/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/store.go') diff --git a/go/game/store.go b/go/game/store.go index 73153980..92943010 100644 --- a/go/game/store.go +++ b/go/game/store.go @@ -15,7 +15,7 @@ func NewStore() *Store { func (s *Store) AddCard(card *Card) { if !card.IsBuyable() { - log.Fatalf("Non buyable card %s can not be added to a store", card.Name) + log.Panicf("Non buyable card %s can not be added to a store", card.Name) } s.PileOfCardsBase.AddCard(card) } -- cgit v1.2.3