aboutsummaryrefslogtreecommitdiff
path: root/go/game/stack.go
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/game/stack.go
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/game/stack.go')
-rw-r--r--go/game/stack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/game/stack.go b/go/game/stack.go
index 78a5ff41..a06af9f3 100644
--- a/go/game/stack.go
+++ b/go/game/stack.go
@@ -24,7 +24,7 @@ func (s *Stack) push(a Action) {
func (s *Stack) pop() {
l := len(s.Actions)
if l == 0 {
- log.Fatalf("Can not pop from empty stack")
+ log.Panicf("Can not pop from empty stack")
}
a := s.Actions[l-1]