Closed tad-lispy closed 7 years ago
Compare this two lines:
https://github.com/jdan/cleaver/blob/master/lib/helper.js#L229 - promise rejected https://github.com/jdan/cleaver/blob/master/lib/helper.js#L220 - promise resolved to empty string
Resolving to empty string in first case would probably fix the issue, but it doesn't seem right to just ignore errors in this general purpose function.
Why not check for ENOENT and resolve with empty string?
Fixed in 860ec600295e5da381b579887686c30392abee3c. @lzrski closing this for now, let us know if something isn't working for you
Hello. Thanks for cleaver. It's really great.
While trying to add single script to my presentation using a custom theme I got:
Creating
settings.json
with{}
inside only got me:According to docs:
But it seems that when local directory is specified as a theme all of those files are required.
It works as expected with remote git repo. Maybe
ENOENT
errors should be ignored for local directory just as404
errors are ignored for remotes?