mesg-foundation / js-sdk

Javascript mono-repo with all the tools to interact with MESG
https://mesg.com
4 stars 4 forks source link

Command service:execute does not output error #111

Closed NicolasMahe closed 4 years ago

NicolasMahe commented 5 years ago

The command service:execute doesn't output the error of the execution if there is one:

➜  cli git:(master) ✗ ./bin/run service:execute marketplace getService --data sid=doesNoExist
Result of task getService
null

The command service:logs properly output the error:

RESULT[getService]: ERROR: service 'doesNoExist' does not exist

Also, the function execute and executeAndCaptureError should be merged in file root-command.ts.