mirror of
https://github.com/minio/minio.git
synced 2025-11-25 12:06:10 -05:00
Migrate from iodine to probe
This commit is contained in:
@@ -71,6 +71,9 @@ type Error struct {
|
||||
// trace the return path with Probe.Trace and finally handle reporting or quitting
|
||||
// at the top level.
|
||||
func New(e error) *Error {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
Err := Error{sync.RWMutex{}, e, GetSysInfo(), []tracePoint{}}
|
||||
return Err.trace()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user