From 45c75899632d7ff14e9e32f073d7a3ace7e1230f 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/stack.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'go/game/stack.go') 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] -- cgit v1.2.3