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:
parent
571d1769a2
commit
7803242ffa
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user