Decode stderr in repo qrexec calls
Before this change, "foobar\n" on stderr would be rendered (in the warning dialog) as "b'foobar\n'", which is ugly. Now it'll be rendered just as "foobar", followed by an actual newline character.
这个提交包含在:
父节点
4931bf9401
当前提交
6a5823b74a
@ -47,7 +47,7 @@ def _run_qrexec_repo(service, arg=''):
|
||||
)
|
||||
if p.stderr:
|
||||
raise RuntimeError('qrexec call stderr was not empty',
|
||||
{'stderr': p.stderr})
|
||||
{'stderr': p.stderr.decode('utf-8')})
|
||||
if p.returncode != 0:
|
||||
raise RuntimeError('qrexec call exited with non-zero return code',
|
||||
{'returncode': p.returncode})
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户