Closed l-r closed 7 years ago
A couple of options:
The only thing I don't want to do is abandon the typed error that this function returns under these circumstances.
The only thing I don't want to do is abandon the typed error that this function returns under these circumstances.
Agreed. I'd vote for
Could send the underlying error message and/or stack trace through
I was setting up a test stack using
cfn-config
and it got stuck onTurns out that these lines https://github.com/mapbox/cfn-config/blob/master/lib/template.js#L37-L38 require the template just fine, but then swallow errors that are thrown from the evaluation of the template. This makes it look like there's something wrong with cfn-config when in fact the real problem was somewhere else:
Those errors should probably bubble up to let the user know that it's not strictly the template parsing that is failing.