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>
commit4ccd7d5d8925d6d1350cdda1297768e22f45a146
parent88ad5b962609da33bc45b0925d0c84d74507c669
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 1 Oct 2026 13:53:40 +0000