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 :(
The error function in then only catches faults happening inside
aml.loadFile(file, parserOptions)
, not ingetRamlRequestsToMock()
. Using a normal .catch() instead will also surface these errors.PS! I just spent many hours trying to figure out why it silently failed :(