Catching multiple errors before quit when catchAllErrors option is set. However there's some caveats.
It only catches all LiquidError, other errors like code bug are not catched in this way. So you'll need to check err.name === 'LiquidErrors' before using.
Top level tokennization errors are not catched, as there's no such concept of Token during this step. e.g. partial tag {% foo
Render errors should be catched perfectly. e.g. undefined variables, nonexist filters/tags, as well as errors thrown in filters/tags.
Catching multiple errors before quit when
catchAllErrors
option is set. However there's some caveats.LiquidError
, other errors like code bug are not catched in this way. So you'll need to checkerr.name === 'LiquidErrors'
before using.Token
during this step. e.g. partial tag{% foo