Commit 2db6e4d6 by Fabian Büchler

Avoid CompilerError for newlines in stderr.

parent 159a605a
...@@ -83,7 +83,7 @@ class SubProcessCompiler(CompilerBase): ...@@ -83,7 +83,7 @@ class SubProcessCompiler(CompilerBase):
if content: if content:
content = smart_bytes(content) content = smart_bytes(content)
stdout, stderr = pipe.communicate(content) stdout, stderr = pipe.communicate(content)
if stderr: if stderr.strip():
raise CompilerError(stderr) raise CompilerError(stderr)
if self.verbose: if self.verbose:
print(stderr) print(stderr)
......
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