mirror of https://github.com/poanetwork/quorum.git
handled unhandled error.
This commit is contained in:
parent
0eca8e9373
commit
186a62b185
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue