Skip to content

Commit

Permalink
Fix clang_tidy.py
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: pytorch#13776

Differential Revision: D13002845

Pulled By: goldsborough

fbshipit-source-id: 7b019a032680796cbb04f733b31749ef7c6abe54
  • Loading branch information
goldsborough authored and facebook-github-bot committed Nov 9, 2018
1 parent 79ceece commit 09369fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def run_shell_command(arguments):
try:
output = subprocess.check_output(arguments).decode().strip()
except subprocess.CalledProcessError:
raise RuntimeError("Error executing {}: {}".format(" ".join(arguments), output))
_, error, _ = sys.exc_info()
error_output = error.output.decode().strip()
raise RuntimeError("Error executing {}: {}".format(" ".join(arguments), error_output))

return output

Expand Down

0 comments on commit 09369fa

Please sign in to comment.