feat: improve error handling
This commit is contained in:
parent
af9ab60092
commit
e6299c0010
4 changed files with 21 additions and 15 deletions
|
@ -83,15 +83,6 @@ func location(skip int) string {
|
|||
return fmt.Sprintf("%s:%d", file, line)
|
||||
}
|
||||
|
||||
var (
|
||||
ErrBadRole = errors.New("bad role")
|
||||
)
|
||||
|
||||
var (
|
||||
ErrBadTestingStrategy = errors.New("bad testing strategy")
|
||||
ErrBadResult = errors.New("bad result")
|
||||
)
|
||||
|
||||
type Error struct {
|
||||
src error
|
||||
layer layer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue