I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e1189b9c authored by zzz's avatar zzz
Browse files

i2psnark: Error messages take 2

parent 9feeb76d
No related branches found
No related tags found
No related merge requests found
......@@ -467,7 +467,7 @@ public class Snark
try { storage.close(); } catch (IOException ioee) {
ioee.printStackTrace();
}
fatal("Could not check or create storage for " + getBaseName(), ioe);
fatal("Could not check or create files for " + getBaseInfo(), ioe);
}
}
......@@ -609,7 +609,7 @@ public class Snark
try { storage.close(); } catch (IOException ioee) {
ioee.printStackTrace();
}
fatal("Could not reopen storage for " + getBaseName(), ioe);
fatal("Could not open file for " + getBaseInfo(), ioe);
}
}
trackerclient.start();
......@@ -710,6 +710,19 @@ public class Snark
return torrent;
}
/**
* @return base name for torrent [filtered version of getMetaInfo.getName()],
* or a fake name if in magnet mode, followed by path info and error message,
* for error logging only
* @since 0.9.44
*/
private String getBaseInfo() {
if (storage != null)
return storage.getBaseName() + " at " +
storage.getBase() + " - check that device is present and writable";
return torrent;
}
/**
* @return always will be valid even in magnet mode
* @since 0.8.4
......@@ -1256,7 +1269,7 @@ public class Snark
}
// TODO we're still in an inconsistent state, won't work if restarted
// (PeerState "disconnecting seed that connects to seeds"
fatal("Could not create data files for " + getBaseName(), ioe);
fatal("Could not create file for " + getBaseInfo(), ioe);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment