Show previous exception description.
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 16 Nov 2012 17:21:14 +0000 (18:21 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 16 Nov 2012 17:21:14 +0000 (18:21 +0100)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 2065f7acdf2d5b7991c30cba81e8aa0b5b4221ac..7d5cd4e4a05a75b5dfcac2cb80df3081c74d6b9e 100644 (file)
@@ -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) {