testing
This commit is contained in:
parent
cf0fb5b111
commit
4eb071f72c
@ -3,6 +3,7 @@ package errors
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -47,6 +48,7 @@ func E(args ...interface{}) error {
|
|||||||
case error:
|
case error:
|
||||||
e.Err = arg
|
e.Err = arg
|
||||||
default:
|
default:
|
||||||
|
log.Println(args)
|
||||||
return Errorf("unknown type %T with value %v in error call", arg, arg)
|
return Errorf("unknown type %T with value %v in error call", arg, arg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user