mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 19:43:11 +00:00
i2ptunnel, eepget: Better error message on invalid URLs (ticket #2130)
This commit is contained in:
1 parent
62210c8165
commit
d82499f07c
3 files changed
+11
-1
No files matched your search
@@ -327,6 +327,9 @@ public class EepGet {
|
||||
try {
|
||||
nameURL = new URI(url);
|
||||
} catch (URISyntaxException e) {
|
||||
String msg = e.getLocalizedMessage();
|
||||
if (msg != null)
|
||||
System.err.println(msg);
|
||||
System.err.println("Please enter a properly formed URL.");
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user