18 lines
281 B
Go
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"))))
|
|
}
|