Commit 38f9609f by Tom 'Biwaa' Riat Committed by GitHub

Merge pull request #623 from brawaga/patch-1

Fix to view compile error if happens.
parents 67fef665 39643b53
...@@ -116,12 +116,12 @@ class PipelineMixin(object): ...@@ -116,12 +116,12 @@ class PipelineMixin(object):
return method(package, paths, templates=templates) return method(package, paths, templates=templates)
def render_error(self, package_type, package_name, e): 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_type': package_type,
'package_name': package_name, 'package_name': package_name,
'command': subprocess.list2cmdline(e.command), 'command': subprocess.list2cmdline(e.command),
'errors': e.error_output, 'errors': e.error_output,
})) })
class StylesheetNode(PipelineMixin, template.Node): 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