summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.server
diff options
context:
space:
mode:
authorHector Oswaldo Caballero <hector.caballero@ericsson.com>2015-03-16 08:48:56 -0400
committerMatthias Sohn <matthias.sohn@sap.com>2015-04-03 08:29:08 -0400
commitcbb617603ab657f3cb38a96726ec287bc6fda175 (patch)
tree1105190ce8f61b5c3c08ebfc65f035b15519df53 /org.eclipse.jgit.http.server
parent81c84c088f85e5babe73e1799fe786bf32750a5a (diff)
downloadjgit-cbb617603ab657f3cb38a96726ec287bc6fda175.tar.gz
jgit-cbb617603ab657f3cb38a96726ec287bc6fda175.zip
Clearer error message when service is not enabled
When a user tried to use a service not enabled in the remote server a misleading error message was given: fatal: remote error: Git access forbidden This patch modifies the error message to make the cause clearer to the user. Now, when the user tries to use a not enabled service, the message error clearly states it: fatal: remote error: Service not enabled Change-Id: If096c4ddd17c5aae0e99e3ea6eea4b69bd3c5466 Signed-off-by: Hector Oswaldo Caballero <hector.caballero@ericsson.com>
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r--org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java
index 4810753779..51332194b8 100644
--- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java
+++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/SmartServiceInfoRefs.java
@@ -101,7 +101,7 @@ abstract class SmartServiceInfoRefs implements Filter {
res.sendError(SC_UNAUTHORIZED);
return;
} catch (ServiceNotEnabledException e) {
- sendError(req, res, SC_FORBIDDEN);
+ sendError(req, res, SC_FORBIDDEN, e.getMessage());
return;
}