commit | 08d691f40bbe8c6ed28a5ba22798f0cbee595fa7 | [log] [tgz] |
---|---|---|
author | buchgr <buchgr@google.com> | Wed Jun 12 03:04:22 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Jun 12 03:05:14 2019 -0700 |
tree | b37dc85f501552cdde9326a5fd065a54b29d17d8 | |
parent | 762c25556dceafea5ca6fe2b2c9d575d6cab8125 [diff] |
Refactor message construction of ActionExecutionException Note to Reviewer: Start your review looking at ActionExecutionException.java to see what this change is all about. The constructor of ActionExecutionException always appends cause.getMessage() to it's own message whenever a cause is available. This behavior is unexpected by a caller and in practice often leads to clunky error messages. I found especially the pattern of new ActionExecutionException(cause.getMessage(), cause) to frequently and unintentionally lead to the duplication of error messages. This change refactors ActionExecutionException to NOT automatically append cause.getMessage() to it's own message and also fixes relevant callsites to manually append cause.getMessage(). It does not fix the callsites that already call new ActionExecutionException(message, cause.getMessage()) where message.equals(cause.getMessage)) is true. So these callsites unfortunately won't show up as part of this change. RELNOTES: None PiperOrigin-RevId: 252790648
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel only rebuilds what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.