]> source.dussan.org Git - jgit.git/commitdiff
Externalize warning message in RefDirectory.delete() 71/128071/2
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 23 Aug 2018 09:44:28 +0000 (11:44 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 27 Aug 2018 08:52:20 +0000 (10:52 +0200)
Change-Id: Icec16c01853a3f5ea016d454b3d48624498efcce
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java

index 2150d5ce3e0a3b965366ad349979c1f728bff484..abe5161df1bb4e85ce42b2a1d1265ceaf9670daa 100644 (file)
@@ -705,6 +705,7 @@ truncatedHunkOldLinesMissing=Truncated hunk, at least {0} old lines is missing
 tSizeMustBeGreaterOrEqual1=tSize must be >= 1
 unableToCheckConnectivity=Unable to check connectivity.
 unableToCreateNewObject=Unable to create new object: {0}
+unableToRemovePath=Unable to remove path ''{0}''
 unableToStore=Unable to store {0}.
 unableToWrite=Unable to write {0}
 unauthorized=Unauthorized
index 2373b97bd1b14c437ef2f6740eafc3c9d2a90783..871d28de1349d3fcfb99b38a189b8a437d6fce1f 100644 (file)
@@ -766,6 +766,7 @@ public class JGitText extends TranslationBundle {
        /***/ public String tSizeMustBeGreaterOrEqual1;
        /***/ public String unableToCheckConnectivity;
        /***/ public String unableToCreateNewObject;
+       /***/ public String unableToRemovePath;
        /***/ public String unableToStore;
        /***/ public String unableToWrite;
        /***/ public String unauthorized;
index 40c6de33fa10dad07c9641518646f73ca6776160..9b2865d85a3240f3315028f82c97cd335858a44c 100644 (file)
@@ -1293,7 +1293,8 @@ public class RefDirectory extends RefDatabase {
                                // same prefix
                                break;
                        } catch (IOException e) {
-                               LOG.warn("Unable to remove path {}", dir, e); //$NON-NLS-1$
+                               LOG.warn(MessageFormat.format(JGitText.get().unableToRemovePath,
+                                               dir), e);
                                break;
                        }
                        dir = dir.getParentFile();