Provide a nicer error message for CLA failure

Change-Id: I001f9ef3d428771a77f0d881877e8bf590d91448
This commit is contained in:
Han-Wen Nienhuys
2018-07-09 15:19:43 +02:00
parent 663cbed426
commit c12ddc3b23
2 changed files with 8 additions and 4 deletions

View File

@@ -108,7 +108,11 @@ public class ContributorAgreementsChecker {
if (!iUser.getEffectiveGroups().containsAnyOf(okGroupIds)) {
final StringBuilder msg = new StringBuilder();
msg.append("A Contributor Agreement must be completed before uploading");
msg.append("No Contributor Agreement on file for user ")
.append(iUser.getNameEmail())
.append(" (id=")
.append(iUser.getAccountId())
.append(")");
if (canonicalWebUrl != null) {
msg.append(":\n\n ");
msg.append(canonicalWebUrl);