]> source.dussan.org Git - jgit.git/commit
Fix wrong Exception messages 22/26422/2
authorChristian Halstrick <christian.halstrick@sap.com>
Tue, 13 May 2014 07:17:25 +0000 (09:17 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 13 May 2014 22:52:06 +0000 (00:52 +0200)
commit292cfab10d76fd372f76c672e96e9d168f8d7abf
tree2596b390977d38a58a2fb94e570fcad3eea35566
parent392f1e70a8158e4f6721903c2c034cc22ce30228
Fix wrong Exception messages

In two places we threw an IOException and the message was built using
JGitText.couldNotWriteFile. We specified 2 parameters, but this pattern
expects only one parameter. In both places we tried to rename a file,
that's why we wanted two parameters (src and target) for the exception
text.

I changed it to use JGitText.renameFileFailed which accepts two
parameters and fits better.

Change-Id: Ib8c2cf78f2b26ca2b97754fe91fdb20b30392415
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/StashDropCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java