Browse Source

Fix error message to include cause if ResetCommand fails

Bug: 464048
Change-Id: I6e7d9262b94cb168c84faef1dea22c1e082fe5ad
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.1
Matthias Sohn 10 years ago
parent
commit
41c4f9cb2a
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

4
org.eclipse.jgit/src/org/eclipse/jgit/api/ResetCommand.java

@ -227,9 +227,9 @@ public class ResetCommand extends GitCommand<Ref> {
setCallable(false);
return result;
} catch (IOException e) {
throw new JGitInternalException(
throw new JGitInternalException(MessageFormat.format(
JGitText.get().exceptionCaughtDuringExecutionOfResetCommand,
e);
e.getMessage()), e);
}
}

Loading…
Cancel
Save