QDoc: Catch template render errors
Where the template libraries run with exceptions, an error they report
leaves the render as an exception that nothing in QDoc handles. The run
then ends without naming the page or template that failed, unlike in
builds without exceptions.
A failed render now reports the same diagnostic in both kinds of build:
the output format, the page being rendered, and the template in use,
along with the error the engine reported. This prepares for building
the template generator with exceptions enabled, and for recovering from
a failed page instead of ending the run.
Task-number: QTBUG-146939
Pick-to: 6.12
Change-Id: Ic2c2507add80541f6b1e0741d00edf054a30af33
Reviewed-by: Paul Wicking <paul.wicking@qt.io>