diff options
Diffstat (limited to 'vendor/github.com/pkg/errors/stack.go')
| -rw-r--r-- | vendor/github.com/pkg/errors/stack.go | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/vendor/github.com/pkg/errors/stack.go b/vendor/github.com/pkg/errors/stack.go index 243a64a..6b1f289 100644 --- a/vendor/github.com/pkg/errors/stack.go +++ b/vendor/github.com/pkg/errors/stack.go @@ -100,6 +100,19 @@ func (st StackTrace) Format(s fmt.State, verb rune) {  // stack represents a stack of program counters.  type stack []uintptr +func (s *stack) Format(st fmt.State, verb rune) { +	switch verb { +	case 'v': +		switch { +		case st.Flag('+'): +			for _, pc := range *s { +				f := Frame(pc) +				fmt.Fprintf(st, "\n%+v", f) +			} +		} +	} +} +  func (s *stack) StackTrace() StackTrace {  	f := make([]Frame, len(*s))  	for i := 0; i < len(f); i++ { | 
