mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-10 20:37:30 -04:00
Output the URL in the log when the file is not found
This commit is contained in:
parent
5f4fc77258
commit
a237a31d23
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user