diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-15 16:41:29 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:50 +0100 |
| commit | f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae (patch) | |
| tree | 7f3ffdd01af02d60c78ea65bafa75384cf140aac /go/game/stack.go | |
| parent | 0edb119b497bf1283f976693b02e044033d4de08 (diff) | |
| download | muhqs-game-f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae.tar.gz muhqs-game-f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae.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.go | 2 |
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] |
