chore: make CatchPanics an option flag

This commit is contained in:
Christian Muehlhaeuser
2022-10-07 21:48:50 +02:00
parent 0ac6702e11
commit 76ce669474
3 changed files with 22 additions and 24 deletions

View File

@@ -52,7 +52,7 @@ func WithoutSignalHandler() ProgramOption {
// cleanup on exit.
func WithoutCatchPanics() ProgramOption {
return func(p *Program) {
p.CatchPanics = false
p.startupOptions |= withoutCatchPanics
}
}