mirror of
https://github.com/nabbar/golib.git
synced 2025-10-10 18:20:51 +08:00
Rework Error interface
Package Errors: - add function to check & cast error interface into golib Error interface - update CodeError type to simplify management & error creation - add function to simplify call of Error function from a generic error interface - remove some useless function from Error interface All Other Packages: - apply change of package Errors into all other packages
This commit is contained in:
@@ -104,7 +104,7 @@ func SetTransportDial(tr *http.Transport, forceIp bool, netw libptc.NetworkProto
|
||||
func GetClient(tr *http.Transport, http2Tr bool, GlobalTimeout time.Duration) (*http.Client, liberr.Error) {
|
||||
if http2Tr {
|
||||
if e := http2.ConfigureTransport(tr); e != nil {
|
||||
return nil, ErrorClientTransportHttp2.ErrorParent(e)
|
||||
return nil, ErrorClientTransportHttp2.Error(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user