commit | b1b30df4b5b74fdc85f5eaf5167cacd8f875c591 | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Thu Oct 22 16:03:50 2020 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Thu Oct 22 16:03:50 2020 +0200 |
tree | b30f9e284b9aaa39551c687197e704d70e134665 | |
parent | 492b4e01634aa5df858ea29abd279fe829d83b8c [diff] |
CheckCodeOwnerConfigFiles: Handle new FATAL enum This was introduced by change Ide55a2ba9. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I427e4cf82735391bbf49e8e3edf04f9958c79dfb
diff --git a/java/com/google/gerrit/plugins/codeowners/restapi/CheckCodeOwnerConfigFiles.java b/java/com/google/gerrit/plugins/codeowners/restapi/CheckCodeOwnerConfigFiles.java index fac3c36..e18ddb3 100644 --- a/java/com/google/gerrit/plugins/codeowners/restapi/CheckCodeOwnerConfigFiles.java +++ b/java/com/google/gerrit/plugins/codeowners/restapi/CheckCodeOwnerConfigFiles.java
@@ -175,6 +175,10 @@ public static Optional<ConsistencyProblemInfo> createConsistencyProblemInfo( CommitValidationMessage commitValidationMessage) { switch (commitValidationMessage.getType()) { + case FATAL: + return Optional.of( + new ConsistencyProblemInfo( + ConsistencyProblemInfo.Status.FATAL, commitValidationMessage.getMessage())); case ERROR: return Optional.of( new ConsistencyProblemInfo(