-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors are not passed to metalsmith's done callback #61
Comments
this is stemming from the Pug API lacking details on capturing errors: https://pugjs.org/api/reference.html better error handling is certainly needed, will look into it. |
I see. |
yep. happy to take PRs, otherwise will add to my backlog.
|
sure, happy to help out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just realized, that if one file errors, because of wrong pug syntax like:
.correct buggy*line/throws
This error is not properly handled and passed to
done
callback, instead it is just ignored...It is very important to propagate the error so that one could handle it by:
Refer to the docs about proper error handling in Node:
The text was updated successfully, but these errors were encountered: