prepare_binding_Python: print readable errors if SWIG fails
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 20 Sep 2019 23:41:32 +0000 (23:41 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 20 Sep 2019 23:41:32 +0000 (23:41 +0000)
commit7d6a95cf83fcca92e64302194995601474bc161a
tree17da31cd69895422842061aef7c60da31dc15b3e
parente021d6909436c6baac2dc7c9065340862a9b9aa2
prepare_binding_Python: print readable errors if SWIG fails

When swig fails, all the errors are squished onto one line with \n
quoting. It's very hard to read. This will print them out in a more
reasonable format.

Patch by: Lawrence D'Anna

Differential revision: https://reviews.llvm.org/D67790

llvm-svn: 372442
lldb/scripts/Python/prepare_binding_Python.py