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

Function Hide

functions.go:449–454  ·  view source on GitHub ↗

Hide takes an error and silences it's error string from appearing in fmt like

(err error)

Source from the content-addressed store, hash-verified

447// Hide takes an error and silences it's error string from appearing in fmt
448// like
449func Hide(err error) error {
450 if err == nil {
451 return nil
452 }
453 return &fmtNoop{err}
454}

Callers 9

ExampleHideFunction · 0.92
UnauthorizedfFunction · 0.85
BadRequestfFunction · 0.85
MethodNotAllowedfFunction · 0.85
ForbiddenfFunction · 0.85
QuotaLimitExceededfFunction · 0.85
NotYetAvailablefFunction · 0.85

Calls

no outgoing calls

Tested by 3

ExampleHideFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…