repocho / raml-mocker

Node module to create random responses to requests based on RAML rest definition.
MIT License
93 stars 33 forks source link

Catch uncaught errors when parsing RAML #24

Closed androa closed 7 years ago

androa commented 8 years ago

The error function in then only catches faults happening inside aml.loadFile(file, parserOptions), not in getRamlRequestsToMock(). Using a normal .catch() instead will also surface these errors.

PS! I just spent many hours trying to figure out why it silently failed :(

repocho commented 7 years ago

Thanks for your contribution !!