From 18bb534f9644a2f5245c3b86345b69b3595ed301 Mon Sep 17 00:00:00 2001 From: Marc Egea i Sala Date: Thu, 19 Nov 2015 10:40:07 +0000 Subject: [PATCH] Handle 401 errors as ptorected projects --- .../java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java | 1 + 1 file changed, 1 insertion(+) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java index 7ce5e7b14e..c82d2351fe 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/snapshot/getdoc/GetDocResult.java @@ -65,6 +65,7 @@ public class GetDocResult extends Result { JsonObject jsonObject = json.getAsJsonObject(); if (jsonObject.has("status")) { switch (jsonObject.get("status").getAsInt()) { + case 401: case 403: exception = new ProtectedProjectException(); break;