From: Tim Düsterhus Date: Fri, 16 Nov 2012 17:21:14 +0000 (+0100) Subject: Show previous exception description. X-Git-Tag: 2.0.0_Beta_1~779 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aca74f69df0bb6e5824a1d3759d347c5cd5048b0;p=GitHub%2FWoltLab%2FWCF.git Show previous exception description. --- 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) {