We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d954f5 commit 004deefCopy full SHA for 004deef
example_test.go
@@ -195,7 +195,7 @@ func Example_stackTrace() {
195
func ExampleCause_printf() {
196
err := errors.Wrap(func() error {
197
return func() error {
198
- return errors.Errorf("hello %s", fmt.Sprintf("world"))
+ return errors.New("hello world")
199
}()
200
}(), "failed")
201
stack_test.go
@@ -142,7 +142,7 @@ func TestStackTrace(t *testing.T) {
142
}, {
143
Cause(func() error {
144
145
- return Errorf("hello %s", fmt.Sprintf("world"))
+ return Errorf("hello %s", fmt.Sprintf("world: %s", "ooh"))
146
147
}()), []string{
148
`github.com/pkg/errors.TestStackTrace.func2.1` +
0 commit comments