MCPcopy
hub / github.com/kopia/kopia / NewErrorInfo

Function NewErrorInfo

notification/notifydata/error_info.go:41–50  ·  view source on GitHub ↗

NewErrorInfo creates a new ErrorInfo.

(operation, operationDetails string, startTime, endTime time.Time, err error)

Source from the content-addressed store, hash-verified

39
40// NewErrorInfo creates a new ErrorInfo.
41func NewErrorInfo(operation, operationDetails string, startTime, endTime time.Time, err error) *ErrorInfo {
42 return &ErrorInfo{
43 Operation: operation,
44 OperationDetails: operationDetails,
45 StartTime: startTime,
46 EndTime: endTime,
47 ErrorMessage: fmt.Sprintf("%v", err),
48 ErrorDetails: fmt.Sprintf("%+v", err),
49 }
50}

Callers 4

TestNewErrorInfoFunction · 0.92
repositoryActionMethod · 0.92

Calls

no outgoing calls

Tested by 2

TestNewErrorInfoFunction · 0.74