stringify exceptions to move away from Exception.message
Python 2.6 deprecated the Exception.message field and Python 3 has
dropped it entirely. Using str() on the exception should get us
all the same info, so switch to that (or implicitly so when using
%s with formatting output).
BUG=chromium:980619
TEST=`cros lint` is clean w/pylint-1.7 again
TEST=`./run_tests` passes
Change-Id: Iedef5c123f7638e08364f8d7256ec0b1cb3f4be0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1829813
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
diff --git a/api/controller/sysroot.py b/api/controller/sysroot.py
index 0f232f8..edd9af5 100644
--- a/api/controller/sysroot.py
+++ b/api/controller/sysroot.py
@@ -43,7 +43,7 @@
created = sysroot.Create(build_target, run_configs,
accept_licenses=_ACCEPTED_LICENSES)
except sysroot.Error as e:
- cros_build_lib.Die(e.message)
+ cros_build_lib.Die(e)
output_proto.sysroot.path = created.path
output_proto.sysroot.build_target.name = build_target_name