adverr/error_test.go
2020-09-09 11:48:46 +02:00

18 lines
283 B
Go

package adverr
import (
"errors"
"fmt"
"testing"
)
func TestErr(t *testing.T) {
TraceCallStack = false
err := doStuff()
fmt.Println(err)
}
func doStuff() error {
return Wrap("wrapped error", Wrap("test error", fmt.Errorf("asd: %w", errors.New("test"))))
}