I'm using JBake via Gradle and GitLab CI to auto-publish site updates. If something goes wrong with the bake Gradle task, I would like the build to fail and the site update not to be published.
Instead I get the following warning message and the site publishes with a broken link (404).
Error parsing meta data from header (missing type or status value) for file /builds/rivetz/developer-rivetz/src/jbake/content/start.adoc!
/builds/rivetz/developer-rivetz/src/jbake/content/start.adoc has an invalid header, it has been ignored!
Perhaps, for backward-compatibility reasons, there should be a config option to enable fail/abort on error.
Crawler.java could then have a configuration option to return an error or throw an exception when something goes wrong.