Util: Improve eephead CLI error output

This commit is contained in:
zzz committed 2026-07-28 17:28:05 -04:00
1 parent e95ae8cc68
commit 40a17115a5
1 file changed
+4
+4
View File
@@ -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);
}
}