wearetheledger / fabric-mock-stub

Mock implementation of the fabric-shim stub for testing
https://theledger.be
MIT License
49 stars 28 forks source link

Mockstub on error throw full object in message field #12

Closed michielmulders closed 6 years ago

michielmulders commented 6 years ago

screen shot 2018-07-20 at 11 23 54

The full error object is again pasted in the message field. Fix? Paste message field in the message field of returned error object instead of full error object.

I have to access the message property like this now: JSON.parse(responseCreate.message).message