Merge "Propagate the exception cause in CherryPickChange#cherryPick"

This commit is contained in:
Edwin Kempin
2021-01-14 13:16:51 +00:00
committed by Gerrit Code Review

View File

@@ -334,7 +334,7 @@ public class CherryPickChange {
input.allowEmpty,
input.allowConflicts);
} catch (MergeIdenticalTreeException | MergeConflictException e) {
throw new IntegrationConflictException("Cherry pick failed: " + e.getMessage());
throw new IntegrationConflictException("Cherry pick failed: " + e.getMessage(), e);
}
try (BatchUpdate bu = batchUpdateFactory.create(project, identifiedUser, timestamp)) {