Fix error message to include cause if ResetCommand fails

Bug: 464048
Change-Id: I6e7d9262b94cb168c84faef1dea22c1e082fe5ad
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2015-04-14 15:28:19 +02:00
parent 300a55dcba
commit 41c4f9cb2a
1 changed files with 2 additions and 2 deletions

View File

@ -227,9 +227,9 @@ else if (repo.readSquashCommitMsg() != null)
setCallable(false);
return result;
} catch (IOException e) {
throw new JGitInternalException(
throw new JGitInternalException(MessageFormat.format(
JGitText.get().exceptionCaughtDuringExecutionOfResetCommand,
e);
e.getMessage()), e);
}
}