mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Github: add field to parse
This commit is contained in:
@@ -29,6 +29,7 @@ class GithubErrorMessageRaw {
|
||||
|
||||
private static class Error {
|
||||
@Nullable public String resource;
|
||||
@Nullable public String field;
|
||||
@Nullable public String code;
|
||||
@Nullable public String message;
|
||||
}
|
||||
@@ -41,7 +42,8 @@ class GithubErrorMessageRaw {
|
||||
else {
|
||||
StringBuilder s = new StringBuilder(message);
|
||||
for (Error e : errors) {
|
||||
s.append("<br/>").append("[").append(e.resource).append("]").append(e.code).append(": ").append(e.message);
|
||||
s.append("<br/>").append("[").append(e.resource).append(";").append(e.field).append("]").append(e.code).append(": ")
|
||||
.append(e.message);
|
||||
}
|
||||
return s.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user