From ddddc5c3fbd95cd51cf834032429b4fc2d0102ee Mon Sep 17 00:00:00 2001 From: Keith Smith Date: Tue, 15 Aug 2017 02:40:59 -0400 Subject: [PATCH] [FAB-5707] Vendoring github.com/pkg/errors Simply vendoring the errors package to use for stack trace, to be consistent with fabric. Change-Id: I845df1dfa88125f5acb68c45cbcb3fcd5699e923 Signed-off-by: Keith Smith --- vendor/github.com/pkg/errors/stack.go | 8 ++++++++ vendor/vendor.json | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/pkg/errors/stack.go b/vendor/github.com/pkg/errors/stack.go index 6b1f2891a..cbe3f3e38 100644 --- a/vendor/github.com/pkg/errors/stack.go +++ b/vendor/github.com/pkg/errors/stack.go @@ -79,6 +79,14 @@ func (f Frame) Format(s fmt.State, verb rune) { // StackTrace is stack of Frames from innermost (newest) to outermost (oldest). type StackTrace []Frame +// Format formats the stack of Frames according to the fmt.Formatter interface. +// +// %s lists source files for each Frame in the stack +// %v lists the source file and line number for each Frame in the stack +// +// Format accepts flags that alter the printing of some verbs, as follows: +// +// %+v Prints filename, function, and line number for each Frame in the stack. func (st StackTrace) Format(s fmt.State, verb rune) { switch verb { case 'v': diff --git a/vendor/vendor.json b/vendor/vendor.json index e4a30b584..163f89a0d 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -227,10 +227,10 @@ "revisionTime": "2016-09-20T07:07:15Z" }, { - "checksumSHA1": "ynJSWoF6v+3zMnh9R0QmmG6iGV8=", + "checksumSHA1": "rJab1YdNhQooDiBWNnt7TLWPyBU=", "path": "github.com/pkg/errors", - "revision": "839d9e913e063e28dfd0e6c7b7512793e0a48be9", - "revisionTime": "2016-10-02T05:25:12Z" + "revision": "c605e284fe17294bda444b34710735b29d1a9d90", + "revisionTime": "2017-05-05T04:36:39Z" }, { "checksumSHA1": "3c4yRg91RtG0yTo4C/F/22wxO5o=",