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:
parent
0a7fdf35ba
commit
bc97cf977f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user