MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / RedactErrorf

Function RedactErrorf

base/redactable_error.go:28–37  ·  view source on GitHub ↗

RedactErrorf creates a new redactable error. Same signature as fmt.Errorf() for easy drop-in replacement.

(format string, args ...any)

Source from the content-addressed store, hash-verified

26
27// RedactErrorf creates a new redactable error. Same signature as fmt.Errorf() for easy drop-in replacement.
28func RedactErrorf(format string, args ...any) *RedactableError {
29 // no-op call to enable golang.org/x/tools/go/analysis/passes/printf checking in go vet
30 if false {
31 _ = fmt.Errorf(format, args...)
32 }
33 return &RedactableError{
34 fmt: format,
35 args: args,
36 }
37}
38
39// Error satisfies the error interface
40func (re *RedactableError) Error() string {

Callers 15

initOIDCClientMethod · 0.92
getJWTUsernameFunction · 0.92
getPrincipalMethod · 0.92
GetRolesMethod · 0.92
compileAccessMapFunction · 0.92
MergeWithMethod · 0.92
UpdateConfigMethod · 0.92
DeleteConfigMethod · 0.92
GetDatabaseConfigsMethod · 0.92
rollbackRegistryMethod · 0.92
CheckMinorDowngradeMethod · 0.92
sendRevisionMethod · 0.92

Calls 1

ErrorfMethod · 0.80

Tested by 2

TestRedactErrorfFunction · 0.68
BenchmarkRedactErrorfFunction · 0.68