# HG changeset patch # User Chris Manchester # Date 1527826901 25200 # Node ID 7ce972f7d2d5a318db2ba845b67fe051e61c5be4 # Parent d792b48ef7be732eb70336d7aef28c86950bc275 Bug 1444597 - Stringify exception when logging harmless errors in post-build step to avoid confusing stacktrace. r=nalexander MozReview-Commit-ID: 6B4WCUfjESE diff --git a/python/mozbuild/mozbuild/controller/building.py b/python/mozbuild/mozbuild/controller/building.py --- a/python/mozbuild/mozbuild/controller/building.py +++ b/python/mozbuild/mozbuild/controller/building.py @@ -1158,17 +1158,17 @@ class BuildDriver(MozbuildObject): try: config = self.config_environment active_backend = config.substs.get('BUILD_BACKENDS', [None])[0] if active_backend: backend_cls = get_backend_class(active_backend)(config) new_status = backend_cls.post_build(self, output, jobs, verbose, status) status = new_status except Exception as ex: - self.log(logging.DEBUG, 'post_build', {'ex': ex}, + self.log(logging.DEBUG, 'post_build', {'ex': str(ex)}, "Unable to run active build backend's post-build step; " + "failing the build due to exception: {ex}.") if not status: # If the underlying build provided a failing status, pass # it through; otherwise, fail. status = 1 monitor.finish(record_usage=status == 0)