1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-27 12:46:22 +01:00

Issue a warning when reformatting URLs fails

This commit is contained in:
Henry Le Grys 2021-02-13 02:58:09 +00:00
parent 571d1769a2
commit 7803242ffa

View File

@ -395,8 +395,10 @@ public class HttpRequest implements Closeable, ProgressObservable {
url = uri.toURL();
return url;
} catch (MalformedURLException e) {
log.warning("Failed to reformat url " + existing.toString() + ", using unformatted version.");
return existing;
} catch (URISyntaxException e) {
log.warning("Failed to reformat url " + existing.toString() + ", using unformatted version.");
return existing;
}
}