Open AndyOGo opened 7 years ago
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.
I quickly checked pug's repo.
They do not use error-first arguments. Instead they use good old throw
.
So my guess try
, catch
is the correct way to do it.
yep. happy to take PRs, otherwise will add to my backlog.
sure, happy to help out
I just realized, that if one file errors, because of wrong pug syntax like:
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: