Skip to content

Commit

Permalink
Merge pull request #208 from anandrgitnirman/endpoint
Browse files Browse the repository at this point in the history
#issue 206, Better error handling
  • Loading branch information
raamb authored Jan 31, 2019
2 parents ed3ac8d + c28a60f commit 52eb536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/serviceMetadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func getMetaDataUrifromRegistry() []byte {
serviceId := StringToBytes32(config.GetString(config.ServiceId))

serviceRegistration, err := reg.GetServiceRegistrationById(nil, orgId, serviceId)
if err != nil {
if err != nil || !serviceRegistration.Found {
log.WithError(err).WithField("OrganizationId", config.GetString(config.OrganizationId)).
WithField("ServiceId", config.GetString(config.ServiceId)).
Panic("Error Retrieving contract details for the Given Organization and Service Ids ")
Expand Down

0 comments on commit 52eb536

Please sign in to comment.