소스 검색

Satisfy bugsnag ErrorWithCallers

Conrad Irwin 9 년 전
부모
커밋
8fa88b06e5
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      error.go

+ 6 - 0
error.go

@@ -180,6 +180,12 @@ func (err *Error) Stack() []byte {
 	return buf.Bytes()
 }
 
+// Callers satisfies the bugsnag ErrorWithCallerS() interface
+// so that the stack can be read out.
+func (err *Error) Callers() []uintptr {
+	return err.stack
+}
+
 // ErrorStack returns a string that contains both the
 // error message and the callstack.
 func (err *Error) ErrorStack() string {