Merge pull request #4 from overleaf/handle-401

Handle 401 errors as ptorected projects
This commit is contained in:
Marc Egea i Sala 2015-11-19 10:52:53 +00:00
commit dcaf2d0fa6

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;