mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-15 11:45:51 +00:00
Handle creation of non existing parent directories. Improve exception message.
This commit is contained in:
parent
0a7fdf35ba
commit
bc97cf977f
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user