Output the URL in the log when the file is not found
This commit is contained in:
@@ -121,7 +121,7 @@ public abstract class FetchTask<T> extends Task<T> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else if (responseCode / 100 == 4) {
|
} else if (responseCode / 100 == 4) {
|
||||||
throw new FileNotFoundException();
|
throw new FileNotFoundException(url.toString());
|
||||||
} else if (responseCode / 100 != 2) {
|
} else if (responseCode / 100 != 2) {
|
||||||
throw new ResponseCodeException(url, responseCode);
|
throw new ResponseCodeException(url, responseCode);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user