Merge pull request #799 from harshavardhana/pr_out_fix_typo_in_probe

Fix typo in probe
master
Harshavardhana 9 years ago
commit 8789c5a49d
  1. 8
      pkg/probe/probe.go

@ -60,9 +60,9 @@ type tracePoint struct {
// Error implements tracing error functionality. // Error implements tracing error functionality.
type Error struct { type Error struct {
lock sync.RWMutex lock sync.RWMutex
Cause error `json:"cause"` Cause error `json:"cause,omitempty"`
CallTrace []tracePoint `json:"trace"` CallTrace []tracePoint `json:"trace,omitempty"`
SysInfo map[string]string `json:"sysinfo"` SysInfo map[string]string `json:"sysinfo,omitempty"`
} }
// NewError function instantiates an error probe for tracing. Original errors.error (golang's error // NewError function instantiates an error probe for tracing. Original errors.error (golang's error
@ -122,7 +122,7 @@ func (e *Error) Untrace() {
e.CallTrace = e.CallTrace[:l-1] e.CallTrace = e.CallTrace[:l-1]
} }
// ToError returns original error message. // ToGoError returns original error message.
func (e *Error) ToGoError() error { func (e *Error) ToGoError() error {
return e.Cause return e.Cause
} }

Loading…
Cancel
Save