mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 15:19:02 +02:00
Printing in exception.
This commit is contained in:
+7
-2
@@ -37,8 +37,13 @@ public class InvalidFilesException extends SnapshotPostException {
|
||||
@Override
|
||||
public void fromJSON(JsonElement json) {
|
||||
System.out.println(json);
|
||||
for (JsonElement error : json.getAsJsonObject().get("errors").getAsJsonArray()) {
|
||||
descriptionLines.add(describeError(error.getAsJsonObject()));
|
||||
try {
|
||||
|
||||
for (JsonElement error : json.getAsJsonObject().get("errors").getAsJsonArray()) {
|
||||
descriptionLines.add(describeError(error.getAsJsonObject()));
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user