i2ptunnel, eepget: Better error message on invalid URLs (ticket #2130)

This commit is contained in:
zzz
2018-01-06 10:31:41 +00:00
parent 62210c8165
commit d82499f07c
3 changed files with 11 additions and 1 deletions

View File

@ -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);
}