cozy / cozy-client-js

Javascript library to write Cozy applications
https://docs.cozy.io/en/cozy-client-js/README/
MIT License
11 stars 12 forks source link

feat: asynchronous errors in intents.createService() ✨ #257

Closed gregorylegarec closed 6 years ago

gregorylegarec commented 6 years ago

First errors in intents.createService() were throwing error synchronously. To be catch by .catch() method, they must be thrown with a Promise rejection.

gregorylegarec commented 6 years ago

@y-lohse Yep, we should rewrite this part with async/await when we will move it to the future cozy-interapp library.