3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 03:35:52 +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 { protected void startUp() throws Exception {
// Runs in a separate thread. // Runs in a separate thread.
if (!directory.exists()) { if (!directory.exists()) {
if (!directory.mkdir()) { if (!directory.mkdirs()) {
throw new IOException("Could not create named directory."); throw new IOException("Could not create directory " + directory.getAbsolutePath());
} }
} }
log.info("Starting up with directory = {}", directory); log.info("Starting up with directory = {}", directory);