aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2015-11-19 17:21:46 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2015-11-19 23:05:22 +0100
commit4b114d3c6bc1ed80ba55a5a42241ce1ead6d51cc (patch)
tree83c9bccb081412c223315b5be316cda1adabbb8b /org.eclipse.jgit/resources
parentd3e61db455174ce8af70fcc80a19f414881dfea9 (diff)
downloadjgit-4b114d3c6bc1ed80ba55a5a42241ce1ead6d51cc.tar.gz
jgit-4b114d3c6bc1ed80ba55a5a42241ce1ead6d51cc.zip
Throw IndexReadException if existing index can't be read
If the index file exists but can't be read for example because of wrong filesystem permissions we should throw a specific exception. This allows EGit to handle this error situation. Bug: 482607 Change-Id: I50bfcb719c45caac3cb5550a8b16307c2ea9def4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r--org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
index 51e44fd778..cdb2be151d 100644
--- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
+++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
@@ -87,6 +87,7 @@ cannotReadBlob=Cannot read blob {0}
cannotReadCommit=Cannot read commit {0}
cannotReadFile=Cannot read file {0}
cannotReadHEAD=cannot read HEAD: {0} {1}
+cannotReadIndex=The index file {0} exists but cannot be read
cannotReadObject=Cannot read object
cannotReadObjectsPath=Cannot read {0}/{1}: {2}
cannotReadTree=Cannot read tree {0}