Add missing space to exception message for Prolog rule error

If an error occurs while executing a Prolog rule we now fail with

com.google.gerrit.exceptions.StorageException: Submit type rule failed: RULE_ERROR (Error evaluating project rules, check server log)

instead of

com.google.gerrit.exceptions.StorageException: Submit type rule failed: RULE_ERROR(Error evaluating project rules, check server log)

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ic5947f83675c837717dd2ea59ace2590ee63b35b
This commit is contained in:
Edwin Kempin
2019-12-06 11:44:16 +01:00
parent 56af2b2d7f
commit d152fa75f5

View File

@@ -65,7 +65,7 @@ public class SubmitTypeRecord {
StringBuilder sb = new StringBuilder();
sb.append(status);
if (status == Status.RULE_ERROR && errorMessage != null) {
sb.append('(').append(errorMessage).append(")");
sb.append(" (").append(errorMessage).append(")");
}
if (type != null) {
sb.append('[');