Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Add details to model failure exception message #25

Open
walmon opened this issue Jan 2, 2019 · 0 comments
Open

Add details to model failure exception message #25

walmon opened this issue Jan 2, 2019 · 0 comments
Assignees

Comments

@walmon
Copy link
Contributor

walmon commented Jan 2, 2019

The developer may get this error an exception like this when sending a proposal:

myapp: error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: 2 UNKNOWN: error executing chaincode: transaction returned with failure: {"name":"Error","status":500,"message":"Model io.worldsibu.car is not complete\n{\"type\":\"io.worldsibu.car\",\"make\":\"Volkswagen\",\"model\":\"Jetta\",\"colour\":\"gray\",\"owner\":\"Walter Montes\"}"}

It is not obvious that the hidden property id is missing. The exception message at convector-core-model/dist/src/convector-model.js:131:35 should include a label like "Maybe you forgot to include the 'id' property."

@walmon walmon self-assigned this Jan 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant