This commit is contained in:
pypy
2020-01-13 22:04:20 +09:00
parent 45d4f26458
commit ac8ba5b824
2 changed files with 32 additions and 26 deletions
+6 -3
View File
@@ -311,7 +311,10 @@ CefSharp.BindObjectAsync(
text: escapeTag(json.success.message)
}).show();
}
} else if (isObject(json.error)) {
return json;
}
if (isObject(json)) {
if (isObject(json.error)) {
this.$throw(
json.error.status_code || res.status,
json.error.message,
@@ -322,9 +325,9 @@ CefSharp.BindObjectAsync(
json.status_code || res.status,
json.error
);
} else {
this.$throw(res.status, json);
}
}
this.$throw(res.status, json);
return json;
}));
if (isGetRequest) {
+6 -3
View File
@@ -248,7 +248,10 @@ CefSharp.BindObjectAsync(
text: escapeTag(json.success.message)
}).show();
}
} else if (isObject(json.error)) {
return json;
}
if (isObject(json)) {
if (isObject(json.error)) {
this.$throw(
json.error.status_code || res.status,
json.error.message,
@@ -259,9 +262,9 @@ CefSharp.BindObjectAsync(
json.status_code || res.status,
json.error
);
} else {
this.$throw(res.status, json);
}
}
this.$throw(res.status, json);
return json;
}));
if (isGetRequest) {