2020-09-09 11:48:46 +02:00
|
|
|
package adverr
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"fmt"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestErr(t *testing.T) {
|
2020-09-10 15:05:28 +02:00
|
|
|
DisableTrace = false
|
2020-09-09 11:48:46 +02:00
|
|
|
err := doStuff()
|
|
|
|
fmt.Println(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
func doStuff() error {
|
|
|
|
return Wrap("wrapped error", Wrap("test error", fmt.Errorf("asd: %w", errors.New("test"))))
|
|
|
|
}
|