Skip to content

Commit

Permalink
[build_exception] Decode build failure messages
Browse files Browse the repository at this point in the history
This is so that the test harness pretty-prints build error messages in
trace mode, instead of dumping a raw python bytes object.

llvm-svn: 369987
  • Loading branch information
vedantk committed Aug 26, 2019
1 parent 2abca4f commit ba7e191
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ def __str__(self):
@staticmethod
def format_build_error(command, command_output):
return "Error when building test subject.\n\nBuild Command:\n{}\n\nBuild Command Output:\n{}".format(
command, command_output)
command, command_output.decode("utf-8"))

0 comments on commit ba7e191

Please sign in to comment.