From aca74f69df0bb6e5824a1d3759d347c5cd5048b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 16 Nov 2012 18:21:14 +0100 Subject: [PATCH] Show previous exception description. --- .../lib/system/template/TemplateScriptingCompiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 2065f7acdf..7d5cd4e4a0 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -963,7 +963,7 @@ class TemplateScriptingCompiler { $result .= $this->compileVariableTag($value, false); } catch (SystemException $e) { - throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo)); + throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 0, nl2br($e)); } if ($leftParenthesis < $rightParenthesis) { -- 2.20.1