summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs.server/src/org
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@gmail.com>2016-08-18 01:18:15 +0900
committerDavid Pursehouse <david.pursehouse@gmail.com>2016-08-20 11:26:06 +0900
commitde89b7d0407507607a3bacc6fb390977713b7495 (patch)
tree530257c86b0997a3508bd3728cc8814809c0147d /org.eclipse.jgit.lfs.server/src/org
parent0a86b03eb413271d736ae44529811a3e162a8ee1 (diff)
downloadjgit-de89b7d0407507607a3bacc6fb390977713b7495.tar.gz
jgit-de89b7d0407507607a3bacc6fb390977713b7495.zip
LfsProtocolServlet: Always include message in error response
If the message is not sent, the client shows: Unable to parse HTTP response for POST http://admin@localhost:8080/test-project/info/lfs/objects/batch Change-Id: I8b72d1aded2bcd41b7389676e2373034625a1379 Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server/src/org')
-rw-r--r--org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java
index bfd551d58a..095ed4c5ae 100644
--- a/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java
+++ b/org.eclipse.jgit.lfs.server/src/org/eclipse/jgit/lfs/server/LfsProtocolServlet.java
@@ -149,7 +149,8 @@ public abstract class LfsProtocolServlet extends HttpServlet {
try {
repo = getLargeFileRepository(request, path);
if (repo == null) {
- res.setStatus(SC_SERVICE_UNAVAILABLE);
+ sendError(res, w, SC_SERVICE_UNAVAILABLE,
+ "LFS is not available"); //$NON-NLS-1$
} else {
res.setStatus(SC_OK);
TransferHandler handler = TransferHandler