From 5fc990130bbd3cf3a0d505c0e12132ec0ecd6b75 Mon Sep 17 00:00:00 2001 From: Christian Halstrick Date: Mon, 23 Aug 2010 09:48:17 +0200 Subject: [PATCH] Improved creation of JGitInternalException There where 3 cases where a JGitInternalExcption was created without specifying the root cause. This has been fixed. Change-Id: I2ee08d04732371cd9e30874b1437b61217770b6a Signed-off-by: Christian Halstrick --- org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java | 4 ++-- org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java index 859e92fdb..da6ac0a43 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java @@ -248,7 +248,7 @@ public class CommitCommand extends GitCommand { } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccuredDuringReadingOfGIT_DIR, - Constants.MERGE_HEAD, e)); + Constants.MERGE_HEAD, e), e); } if (message == null) { try { @@ -256,7 +256,7 @@ public class CommitCommand extends GitCommand { } catch (IOException e) { throw new JGitInternalException(MessageFormat.format( JGitText.get().exceptionOccuredDuringReadingOfGIT_DIR, - Constants.MERGE_MSG, e)); + Constants.MERGE_MSG, e), e); } } } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java index a6e648d36..f94f32fef 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java @@ -164,7 +164,7 @@ public class MergeCommand extends GitCommand { throw new JGitInternalException( MessageFormat.format( JGitText.get().exceptionCaughtDuringExecutionOfMergeCommand, - e)); + e), e); } }