CodeOwnersExceptionHook: Fix extracting message from exception cause

Instead of returning the message of the outer exception, return the
message of the cause. The cause should have a more detailed message,
e.g. if a code owner config file is invalid, it includes which line is
invalid.

For invalid code owner config files some information (project, branch)
was only available in the outer exception. Include this info into the
cause exception message too, so that we do not lose this info.

Change-Id: Ia26d880fd6574fe00cd76d3fcf5931b23f3e761b
Signed-off-by: Edwin Kempin <ekempin@google.com>
9 files changed
tree: a8ec6b52fe8375365eff69c4658865bf8f0d472b
  1. java/
  2. javatests/
  3. proto/
  4. resources/
  5. test/
  6. ui/
  7. .eslintrc.json
  8. .gitignore
  9. .gitreview
  10. bower.json
  11. BUILD
  12. LICENSE
  13. package-lock.json
  14. package.json
  15. README.md
README.md

Gerrit Code Review code-owners plugin

This plugin provides support for defining code owners for files in a repository.

If the code-owners plugin is enabled, changes can only be submitted if all touched files are covered by approvals from code owners.

Also see resources/Documentation/about.md

IMPORTANT: Before installing/enabling the plugin follow the instructions from the setup guide, see resources/Documentation/setup-guide.md