From 320ac93268b08d49b01e789add94cac63fda9e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 26 Oct 2022 20:46:56 +0200 Subject: [PATCH] CategoryOverpass: re-throw twig compile errors for better debugging --- src/CategoryOverpass.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CategoryOverpass.js b/src/CategoryOverpass.js index 2b40c5fc..e5f590b3 100644 --- a/src/CategoryOverpass.js +++ b/src/CategoryOverpass.js @@ -419,8 +419,10 @@ CategoryOverpass.prototype.open = function () { this.tabInfo.header.title = lang('category-info-tooltip') this.domInfo = this.tabInfo.content this.domInfo.classList.add('info') + } - this.templateInfo = OverpassLayer.twig.twig({ data: this.data.info, autoescape: true }) + if (!this.templateInfo) { + this.templateInfo = OverpassLayer.twig.twig({ data: this.data.info, autoescape: true, rethrow: true }) } this.updateInfo()