Handle 401 errors as ptorected projects

This commit is contained in:
Marc Egea i Sala 2015-11-19 10:40:07 +00:00
parent 946c1d56be
commit 18bb534f96

View file

@ -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;