MCPcopy Create free account
hub / github.com/juju/errors / sameError

Function sameError

error.go:219–221  ·  view source on GitHub ↗

Ideally we'd have a way to check identity, but deep equals will do.

(e1, e2 error)

Source from the content-addressed store, hash-verified

217
218// Ideally we'd have a way to check identity, but deep equals will do.
219func sameError(e1, e2 error) bool {
220 return reflect.DeepEqual(e1, e2)
221}
222
223// Unwrap is a synonym for Underlying, which allows Err to be used with the
224// Unwrap, Is and As functions in Go's standard `errors` library.

Callers 2

ErrorMethod · 0.85
errorStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…