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/client/game.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'go/client/game.go') diff --git a/go/client/game.go b/go/client/game.go index 9fb26efa..b70c2b8f 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -317,7 +317,7 @@ func (g *Game) AddHighlight(obj interface{}) { case *game.Unit: g.mapView.AddHighlightPermanent(obj) default: - log.Fatalf("Unhandled highlight of type %T", obj) + log.Panicf("Unhandled highlight of type %T", obj) } } @@ -450,7 +450,7 @@ func (g *Game) handleSelection(obj interface{}, x, y int) { g.handLayer.HighlightCard(obj.C) default: - log.Fatalf("Object of type %T not handled", obj) + log.Panicf("Object of type %T not handled", obj) } } } -- cgit v1.2.3