Skip to content

Commit 39643b5

Browse files
authored
Fix to view compile error if happens.
If compile error happens, we cannot see it. Instead, ‘context must be a dict rather than Context’. Django 1.11. Regarding to docs, the same down to 1.7.
1 parent 67fef66 commit 39643b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipeline/templatetags/pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ def render_compressed_sources(self, package, package_name, package_type):
116116
return method(package, paths, templates=templates)
117117

118118
def render_error(self, package_type, package_name, e):
119-
return render_to_string('pipeline/compile_error.html', Context({
119+
return render_to_string('pipeline/compile_error.html', {
120120
'package_type': package_type,
121121
'package_name': package_name,
122122
'command': subprocess.list2cmdline(e.command),
123123
'errors': e.error_output,
124-
}))
124+
})
125125

126126

127127
class StylesheetNode(PipelineMixin, template.Node):

0 commit comments

Comments
 (0)