Giteabot a3b917151c
Improve template error reporting (#23396) (#23600)
Backport #23396 by @zeripath

There are multiple duplicate reports of errors during template rendering
due to broken custom templates.

Unfortunately the error returned here is somewhat difficult for users to
understand and it doesn't return the context of the error.

This PR attempts to parse the error returned by the template renderer to
add in some further context including the filename of the template AND
the preceding lines within that template file.

Ref #23274

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
2023-03-20 17:53:45 -04:00
..
2023-01-02 22:46:39 +01:00
2023-01-05 13:58:51 +02:00
2023-02-18 21:17:39 +02:00
2023-01-31 09:45:19 +08:00
2023-01-31 09:45:19 +08:00
2023-02-11 08:39:50 +08:00
2022-12-30 23:31:00 +08:00