From d52bf2eee0eb8cd05d2c62c9b86e29db2616734c Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Mon, 29 Aug 2016 12:18:38 +0900 Subject: 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 --- .../resources/org/eclipse/jgit/lfs/internal/LfsText.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.jgit.lfs/resources') 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 -- cgit v1.2.3