commit | 7baa7e491230328276bf5903746534dcbfae82b0 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Mon Jun 12 07:02:30 2023 +0000 |
committer | Edwin Kempin <ekempin@google.com> | Mon Jun 12 07:05:35 2023 +0000 |
tree | 36710ec74f8ca0441ffb286ecd1e908db51dac9b | |
parent | d1fda661ab57ae011c4a2932e42d828342141ae7 [diff] |
Use qualified name of global capability in error message In project.config that capability ID is prefixes with "<plugin-name>~". To avoid confusion include the prefix into the error message. Change-Id: I8ae4b030f7ce3d94d3435af5216fc8615e6d2786 Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/java/com/google/gerrit/plugins/codeowners/validation/SkipCodeOwnerConfigValidationPushOption.java b/java/com/google/gerrit/plugins/codeowners/validation/SkipCodeOwnerConfigValidationPushOption.java index 4417295..2443ef5 100644 --- a/java/com/google/gerrit/plugins/codeowners/validation/SkipCodeOwnerConfigValidationPushOption.java +++ b/java/com/google/gerrit/plugins/codeowners/validation/SkipCodeOwnerConfigValidationPushOption.java
@@ -106,7 +106,8 @@ } catch (PermissionBackendException e) { throw newInternalServerError( String.format( - "Failed to check %s capability", SkipCodeOwnerConfigValidationCapability.ID), + "Failed to check %s~%s capability", + pluginName, SkipCodeOwnerConfigValidationCapability.ID), e); } }