MCPcopy Create free account
hub / github.com/jetify-com/devbox / safeError

Struct safeError

internal/redact/redact.go:177–181  ·  view source on GitHub ↗

safeError is an error that can redact its message.

Source from the content-addressed store, hash-verified

175
176// safeError is an error that can redact its message.
177type safeError struct {
178 err error
179 redacted error
180 callers []uintptr
181}
182
183func (e *safeError) Error() string { return e.err.Error() }
184func (e *safeError) Redact() string { return e.redacted.Error() }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected