mirror of
https://github.com/nabbar/golib.git
synced 2025-10-06 00:06:50 +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:
@@ -118,7 +118,7 @@ func NewCluster(cfg Config, fctCreate interface{}) (Cluster, liberr.Error) {
|
||||
}
|
||||
|
||||
if n, e := dgbclt.NewNodeHost(cfg.GetDGBConfigNode()); e != nil {
|
||||
return nil, ErrorNodeHostNew.ErrorParent(e)
|
||||
return nil, ErrorNodeHostNew.Error(e)
|
||||
} else {
|
||||
c.nodeHost = n
|
||||
}
|
||||
|
Reference in New Issue
Block a user