Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ linters:
enable:
- bodyclose
- exhaustive
- forbidigo
- goconst
- godot
- gomoddirectives
Expand Down
6 changes: 3 additions & 3 deletions tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,8 @@ func (p *Program) recoverFromPanic(r interface{}) {
case p.errs <- ErrProgramPanic:
default:
}
p.shutdown(true) // Ok to call here, p.Run() cannot do it anymore.
fmt.Printf("Caught panic:\n\n%s\n\nRestoring terminal...\n\n", r)
p.shutdown(true) // Ok to call here, p.Run() cannot do it anymore.
fmt.Printf("Caught panic:\n\n%s\n\nRestoring terminal...\n\n", r) //nolint:forbidigo
debug.PrintStack()
}

Expand All @@ -855,7 +855,7 @@ func (p *Program) recoverFromGoPanic(r interface{}) {
default:
}
p.cancel()
fmt.Printf("Caught goroutine panic:\n\n%s\n\nRestoring terminal...\n\n", r)
fmt.Printf("Caught goroutine panic:\n\n%s\n\nRestoring terminal...\n\n", r) //nolint:forbidigo
debug.PrintStack()
}

Expand Down