Merge pull request #590 from hqhq/hq_fix_stacktrace_panic
Fix stacktrace panic
This commit is contained in:
commit
6dd5d073b3
|
@ -9,6 +9,9 @@ import (
|
|||
// NewFrame returns a new stack frame for the provided information
|
||||
func NewFrame(pc uintptr, file string, line int) Frame {
|
||||
fn := runtime.FuncForPC(pc)
|
||||
if fn == nil {
|
||||
return Frame{}
|
||||
}
|
||||
pack, name := parseFunctionName(fn.Name())
|
||||
return Frame{
|
||||
Line: line,
|
||||
|
|
Loading…
Reference in New Issue