forked from I2P_Developers/i2p.i2p
i2ptunnel, eepget: Better error message on invalid URLs (ticket #2130)
This commit is contained in:
@ -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