mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
Bugfix: using statusElement and not codeElement again
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user