Don't exit before printing the panic log
This commit is contained in:
parent
7742c445f1
commit
c8e63fd3d8
@ -30,8 +30,9 @@ func Exit(format string, args ...interface{}) {
|
||||
}
|
||||
|
||||
func Panic(err error, format string, args ...interface{}) {
|
||||
defer handlePanic(err)
|
||||
Exit(format, args...)
|
||||
Print(format, args...)
|
||||
handlePanic(err)
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
func Debug(format string, args ...interface{}) {
|
||||
|
Loading…
Reference in New Issue
Block a user