From 590141163fd312bedd8594cf87f82812986d09b6 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Fri, 13 Jan 2017 10:41:27 +0900 Subject: LfsProtocolServlet: Improve error on getLargeFileRepository failure Externalize the error message and make it more specific. Also emit an error log. Change-Id: Ie7b1c90c54673bfb8e133fb0aa19a117d4ca6587 Signed-off-by: David Pursehouse Signed-off-by: Matthias Sohn --- .../resources/org/eclipse/jgit/lfs/internal/LfsText.properties | 1 + org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsText.java | 1 + 2 files changed, 2 insertions(+) (limited to 'org.eclipse.jgit.lfs') 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 aa089da113..e08e28cc55 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 @@ -8,3 +8,4 @@ repositoryNotFound=Repository {0} not found repositoryReadOnly=Repository {0} is read-only lfsUnavailable=LFS is not available for repository {0} lfsUnathorized=Not authorized to perform operation {0} on repository {1} +lfsFailedToGetRepository=failed to get repository {0} diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsText.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsText.java index 4260fcd0cd..44595887c4 100644 --- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsText.java +++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/internal/LfsText.java @@ -68,4 +68,5 @@ public class LfsText extends TranslationBundle { /***/ public String repositoryReadOnly; /***/ public String lfsUnavailable; /***/ public String lfsUnathorized; + /***/ public String lfsFailedToGetRepository; } -- cgit v1.2.3