MCPcopy Index your code
hub / github.com/jetify-com/devbox / Format

Method Format

internal/redact/redact.go:203–216  ·  view source on GitHub ↗
(f fmt.State, verb rune)

Source from the content-addressed store, hash-verified

201}
202
203func (e *safeError) Format(f fmt.State, verb rune) {
204 switch verb {
205 case 'v', 's':
206 f.Write([]byte(e.Error())) //nolint:errcheck
207 if f.Flag('+') {
208 for _, fr := range e.StackTrace() {
209 fmt.Fprintf(f, "\n%s\n\t%s:%d", fr.Function, fr.File, fr.Line)
210 }
211 return
212 }
213 case 'q':
214 fmt.Fprintf(f, "%q", e.Error())
215 }
216}
217
218// redactedError is an error containing a redacted message. It is usually the
219// result of calling Error(safeError).

Callers 12

FetchResolvedPackageMethod · 0.45
resolveV2Function · 0.45
shortDateFunction · 0.45
packagesFieldMethod · 0.45
appendPackageMethod · 0.45
removePackageMethod · 0.45
setPackageBoolMethod · 0.45
removePatchMethod · 0.45
setPatchMethod · 0.45
setEnvMethod · 0.45
setStringFieldMethod · 0.45

Calls 3

ErrorMethod · 0.95
StackTraceMethod · 0.95
WriteMethod · 0.80

Tested by

no test coverage detected