diff --git a/global.go b/global.go index c2ca745..ec60dfc 100644 --- a/global.go +++ b/global.go @@ -48,7 +48,9 @@ func PolarisContext() (api.SDKContext, error) { if nil != polarisContext { return polarisContext, nil } - return api.InitContextByConfig(PolarisConfig()) + var err error + polarisContext, err = api.InitContextByConfig(PolarisConfig()) + return polarisContext, err } // PolarisConfig get or init the global polaris configuration