summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs/resources
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2016-08-29 12:18:38 +0900
committerMatthias Sohn <matthias.sohn@sap.com>2016-08-30 20:51:02 +0200
commitd52bf2eee0eb8cd05d2c62c9b86e29db2616734c (patch)
treecd2b1dcc58cf9d294647771605179366acbb2baa /org.eclipse.jgit.lfs/resources
parentac856720220153a152924d08a5a4fbe262d6bdd0 (diff)
downloadjgit-d52bf2eee0eb8cd05d2c62c9b86e29db2616734c.tar.gz
jgit-d52bf2eee0eb8cd05d2c62c9b86e29db2616734c.zip
Add specific exception for LFS unavailable
Instead of returning null, LfsProtocolServlet#getLargeFileRepository should throw LfsUnavailable. If null is returned, throw a generic LfsException. Handle LfsException as an internal server error and return HTTP 500. Change-Id: I33e2a19fcc0fde8aaf0f703860c8fa8ce2de2db5 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs/resources')
-rw-r--r--org.eclipse.jgit.lfs/resources/org/eclipse/jgit/lfs/internal/LfsText.properties3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs/resources/org/eclipse/jgit/lfs/internal/LfsText.properties b/org.eclipse.jgit.lfs/resources/org/eclipse/jgit/lfs/internal/LfsText.properties
index 1c1bbed0e2..7c3aea2261 100644
--- a/org.eclipse.jgit.lfs/resources/org/eclipse/jgit/lfs/internal/LfsText.properties
+++ b/org.eclipse.jgit.lfs/resources/org/eclipse/jgit/lfs/internal/LfsText.properties
@@ -3,4 +3,5 @@ invalidLongId=Invalid id: {0}
invalidLongIdLength=Invalid id length {0}; should be {1}
requiredHashFunctionNotAvailable=Required hash function {0} not available.
repositoryNotFound=Repository {0} not found
-repositoryReadOnly=Repository {0} is read-only \ No newline at end of file
+repositoryReadOnly=Repository {0} is read-only
+lfsUnavailable=LFS is not available for repository {0} \ No newline at end of file