We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36d020 commit 86dbf1aCopy full SHA for 86dbf1a
src/main/java/org/ipfs/api/IPFS.java
@@ -439,8 +439,10 @@ private static byte[] get(URL target) throws IOException {
439
while ((r = in.read(buf)) >= 0)
440
resp.write(buf, 0, r);
441
return resp.toByteArray();
442
+ } catch (ConnectException e) {
443
+ throw new RuntimeException("Couldn't connect to IPFS daemon at "+target+"\n Is IPFS running?");
444
} catch (IOException e) {
- throw new RuntimeException("Trailer: " + conn.getHeaderFields().get("Trailer"), e);
445
+ throw new RuntimeException("IOException contacting IPFS daemon.\nTrailer: " + conn.getHeaderFields().get("Trailer"), e);
446
}
447
448
0 commit comments