aboutsummaryrefslogtreecommitdiff
path: root/go/client
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-15 16:41:29 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:50:10 +0200
commit45c75899632d7ff14e9e32f073d7a3ace7e1230f (patch)
tree1a5d4df030c61908d228f3f43bda4057decffaef /go/client
parentf369b11bd584c5ec22a4e8e009fbac54101813ce (diff)
downloadmuhqs-game-45c75899632d7ff14e9e32f073d7a3ace7e1230f.tar.gz
muhqs-game-45c75899632d7ff14e9e32f073d7a3ace7e1230f.zip
replace Fatalf with Panicf
Panicf includes a stacktrace and causes a debugger to halt.
Diffstat (limited to 'go/client')
-rw-r--r--go/client/game.go4
1 files changed, 2 insertions, 2 deletions
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)
}
}
}