mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Bugfix: using statusElement and not codeElement again
This commit is contained in:
parent
3970fb146c
commit
6ae47e8821
1 changed files with 5 additions and 5 deletions
|
@ -203,13 +203,13 @@ public class Util {
|
|||
serr(json.toString());
|
||||
serr("End of response");
|
||||
JsonElement statusElement = json.get("status");
|
||||
if (codeElement == null) {
|
||||
code = statusElement.getAsString();
|
||||
if (code.equals("422")) {
|
||||
if (statusElement != null) {
|
||||
String status = statusElement.getAsString();
|
||||
if (status.equals("422")) {
|
||||
error = "Unprocessable entity";
|
||||
} else if (code.equals("404")) {
|
||||
} else if (status.equals("404")) {
|
||||
error = "Not found";
|
||||
} else if (code.equals("403")) {
|
||||
} else if (status.equals("403")) {
|
||||
error = "Forbidden";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue