3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 11:15:51 +00:00

Handle creation of non existing parent directories. Improve exception message.

This commit is contained in:
Martin Zachrison 2014-08-05 17:36:04 +02:00
parent 0a7fdf35ba
commit bc97cf977f

View File

@ -233,8 +233,8 @@ public class WalletAppKit extends AbstractIdleService {
protected void startUp() throws Exception {
// Runs in a separate thread.
if (!directory.exists()) {
if (!directory.mkdir()) {
throw new IOException("Could not create named directory.");
if (!directory.mkdirs()) {
throw new IOException("Could not create directory " + directory.getAbsolutePath());
}
}
log.info("Starting up with directory = {}", directory);