adverr/error_test.go
2020-09-10 15:05:28 +02:00

18 lines
281 B
Go

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