Commit 39643b53 by brawaga Committed by GitHub

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.
parent 67fef665
......@@ -116,12 +116,12 @@ class PipelineMixin(object):
return method(package, paths, templates=templates)
def render_error(self, package_type, package_name, e):
return render_to_string('pipeline/compile_error.html', Context({
return render_to_string('pipeline/compile_error.html', {
'package_type': package_type,
'package_name': package_name,
'command': subprocess.list2cmdline(e.command),
'errors': e.error_output,
}))
})
class StylesheetNode(PipelineMixin, template.Node):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment