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

Method StackTrace

internal/redact/redact.go:187–201  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185func (e *safeError) Unwrap() error { return e.err }
186
187func (e *safeError) StackTrace() []runtime.Frame {
188 if len(e.callers) == 0 {
189 return nil
190 }
191 frameIter := runtime.CallersFrames(e.callers)
192 frames := make([]runtime.Frame, 0, len(e.callers))
193 for {
194 frame, more := frameIter.Next()
195 frames = append(frames, frame)
196 if !more {
197 break
198 }
199 }
200 return frames
201}
202
203func (e *safeError) Format(f fmt.State, verb rune) {
204 switch verb {

Callers 1

FormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected