feature: ignore templates that result in error and continue with generation. #436

Closed
kr1zmo opened this Issue Feb 23, 2013 · 3 comments

Comments

Projects
None yet
2 participants

kr1zmo commented Feb 23, 2013

feature: ignore templates that result in error and continue with generation.

When a template fails to compile it affects the entire service. Why not skip over that particular slug and just output a dump of the error.

Currently, if you don't use dynamic:true then it will halt and not generate any other templates.

Owner

balupton commented Feb 24, 2013

I thought this only happens on the initial generation, subsequent generations will ignore and continue - or is this not the case?

kr1zmo commented Feb 25, 2013

Yeah, don't you agree there should be a flag to ignore such files with errors if desired? I do.

If the server crashes and restarts an error might be present in our code since the last restart.

Owner

balupton commented Mar 4, 2013

Not really, a failed render can put DocPad in an unknown state for subsequent renders during that generation. It's best for us to quit and clean up right away.

In other words, what is the value of keeping the error and being in an unknown state for a while, versus just fixing the error right away?

kr1zmo closed this Jun 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment