QDoc: Diagnose template render errors


A documentation author whose template accesses something a page does
not have gets an abort that does not say which page or template
failed. In a large documentation set, that makes the failing template
hard to locate.

A failed template render now reports the output format, the page being
rendered, and the template in use, along with the error the template
engine reported. The author can find and fix the offending page or
template from the diagnostic alone.

Task-number: QTBUG-146939
Pick-to: 6.12
Change-Id: If8149f96980a525fac1abc1947a5a5d30736163f
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commit88ad5b962609da33bc45b0925d0c84d74507c669
parentb818eaae55e9648c1a5920267925d53fb14c8a63
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeThu, 1 Oct 2026 13:53:35 +0000