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