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")))) }