mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Fix #22] PixivDownload 修复因InputStream意外关闭导致的异常误判;
This commit is contained in:
parent
6d55325fc7
commit
6fbbe522db
@ -402,7 +402,7 @@ public class PixivDownload {
|
||||
if(resultObject.get("error").getAsBoolean()) {
|
||||
String message = resultObject.get("message").getAsString();
|
||||
log.warn("作品页面接口请求错误, 错误信息: {}", message);
|
||||
throw new HttpRequestException(response);
|
||||
throw new HttpRequestException(response.getStatusLine(), resultObject.toString());
|
||||
}
|
||||
|
||||
JsonArray linkArray = resultObject.getAsJsonArray("body");
|
||||
|
Loading…
Reference in New Issue
Block a user