diff options
author | Ivan Frade <ifrade@google.com> | 2024-06-06 12:01:04 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-07-08 14:04:56 +0200 |
commit | 4bc6eb8a70281b30e40ebe2fb12927ce2d2640df (patch) | |
tree | 65163576af1b7802c917de3204994738a85ec5b5 /org.eclipse.jgit/src/org/eclipse/jgit/gitrepo | |
parent | 784f0baecbbb68f1e136efe862087634d10826eb (diff) | |
download | jgit-4bc6eb8a70281b30e40ebe2fb12927ce2d2640df.tar.gz jgit-4bc6eb8a70281b30e40ebe2fb12927ce2d2640df.zip |
RepoCommand: Add error to ManifestErrorException
RepoCommand wraps errors in the manifest in a ManifestErrorException
with a fixed message ("Invalid manifest"). Callers like supermanifest
plugin cannot return a meaningful error to the client without digging
into the cause chain.
Add the actual error message to the ManifestErrorException, so callers
can rely on #getMessage() to see what happens.
Change-Id: I18be17fb5e4aaaf4f11ebd627580a91fe330eaca
(cherry picked from commit b41187429359cf9830fd34368d28a454653e187d)
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/gitrepo')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index 3aaef387f9..9979664ceb 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -255,7 +255,7 @@ public class RepoCommand extends GitCommand<RevCommit> { @SuppressWarnings("serial") static class ManifestErrorException extends GitAPIException { ManifestErrorException(Throwable cause) { - super(RepoText.get().invalidManifest, cause); + super(RepoText.get().invalidManifest + " " + cause.getMessage(), cause); } } |