mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-23 02:12:54 +00:00
Util: Improve eephead CLI error output
This commit is contained in:
1 file changed
+4
@@ -151,6 +151,10 @@ public class EepHead extends EepGet {
|
||||
System.err.println("Etag: " + x);
|
||||
} else {
|
||||
System.err.println("Failed " + url);
|
||||
int responseCode = get.getStatusCode();
|
||||
String responseText = get.getStatusText();
|
||||
if (responseCode > 0)
|
||||
System.err.println(responseCode + (responseText != null ? (" " + responseText) : ""));
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user