summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2010-08-23 09:48:17 +0200
committerChristian Halstrick <christian.halstrick@sap.com>2010-08-23 10:20:43 +0200
commit5fc990130bbd3cf3a0d505c0e12132ec0ecd6b75 (patch)
tree88d3a14101feae095a34fd274c7ab4a0f5ccb650
parente2e38792b5403da38d5e3ab0e15b626e051107f2 (diff)
downloadjgit-5fc990130bbd3cf3a0d505c0e12132ec0ecd6b75.tar.gz
jgit-5fc990130bbd3cf3a0d505c0e12132ec0ecd6b75.zip
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 <christian.halstrick@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java4
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/MergeCommand.java2
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 859e92fdb7..da6ac0a434 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<RevCommit> {
} 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<RevCommit> {
} 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 a6e648d360..f94f32fef9 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<MergeResult> {
throw new JGitInternalException(
MessageFormat.format(
JGitText.get().exceptionCaughtDuringExecutionOfMergeCommand,
- e));
+ e), e);
}
}