Fix unexpected error due to malformed url

This commit is contained in:
litetex 2025-02-09 20:08:40 +01:00
parent 6e82a80b26
commit ddc7f3e33a
No known key found for this signature in database
GPG Key ID: 525B43E6039B3689

View File

@ -114,7 +114,7 @@ public final class YoutubeStreamLinkHandlerFactory extends LinkHandlerFactory {
try {
url = Utils.stringToURL(urlString);
} catch (final MalformedURLException e) {
throw new IllegalArgumentException("The given URL is not valid");
throw new ParsingException("The given URL is not valid", e);
}
final String host = url.getHost();