Skip to content
Snippets Groups Projects
Commit f981cb0f authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Decode stderr from UTF-8 in prefork, to avoid \n'd together mess for error messages

parent c8321a19
No related branches found
No related tags found
1 merge request!31Decode stderr in prefork
Pipeline #19812 passed
This commit is part of merge request !31. Comments created here will be created in the context of that merge request.
......@@ -53,7 +53,7 @@ class DirectForker(object):
if error_on_nonzero and popen.returncode:
raise ExecError("status %d invoking '%s': %s"
% (popen.returncode, " ".join(cmdline),
stderr_data))
stderr_data.decode("utf-8", errors="replace")))
return popen.returncode, stdout_data, stderr_data
except OSError as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment