Output the URL in the log when the file is not found

This commit is contained in:
Glavo 2022-01-24 12:22:43 +08:00 committed by Yuhui Huang
parent 5f4fc77258
commit a237a31d23

View File

@ -121,7 +121,7 @@ public abstract class FetchTask<T> extends Task<T> {
continue;
}
} else if (responseCode / 100 == 4) {
throw new FileNotFoundException();
throw new FileNotFoundException(url.toString());
} else if (responseCode / 100 != 2) {
throw new ResponseCodeException(url, responseCode);
}