handled unhandled error.

This commit is contained in:
vsmk98 2020-04-03 10:10:06 +08:00
parent 0eca8e9373
commit 186a62b185
1 changed files with 5 additions and 1 deletions

View File

@ -901,7 +901,11 @@ func (p *PermissionCtrl) populateOrgToCache(orgId string) *types.OrgInfo {
Pending: true,
},
}
org, parentOrgId, ultimateParentId, orgLevel, orgStatus, _ := permOrgInterface.GetOrgDetails(orgId)
org, parentOrgId, ultimateParentId, orgLevel, orgStatus, err := permOrgInterface.GetOrgDetails(orgId)
if err != nil {
log.Info("failed to retrieve the org details from permissions contract", "err", err)
return nil
}
if orgStatus.Int64() == 0 {
return nil
}