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

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

No files matched your search

+3
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);
}