Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
294
Merge Requests
294
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
ae015a0d
Commit
ae015a0d
authored
Apr 26, 2016
by
Cottser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2706683
by dawehner, Jacine: Don't convert twig exceptions to drupal messages
parent
c261af6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
core/themes/engines/twig/twig.engine
core/themes/engines/twig/twig.engine
+0
-3
No files found.
core/themes/engines/twig/twig.engine
View file @
ae015a0d
...
...
@@ -63,9 +63,6 @@ function twig_render_template($template_file, array $variables) {
try
{
$output
[
'rendered_markup'
]
=
$twig_service
->
loadTemplate
(
$template_file
)
->
render
(
$variables
);
}
catch
(
\
Twig_Error_Loader
$e
)
{
drupal_set_message
(
$e
->
getMessage
(),
'error'
);
}
catch
(
\
Twig_Error_Runtime
$e
)
{
// In case there is a previous exception, re-throw the previous exception,
// so that the original exception is shown, rather than
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment