mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
Wallet: log exceptions during save.
This commit is contained in:
parent
fa53806ef5
commit
d50412e24c
@ -315,6 +315,9 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi
|
|||||||
} else if (!temp.renameTo(destFile)) {
|
} else if (!temp.renameTo(destFile)) {
|
||||||
throw new IOException("Failed to rename " + temp + " to " + destFile);
|
throw new IOException("Failed to rename " + temp + " to " + destFile);
|
||||||
}
|
}
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
log.error("Failed whilst saving wallet", e);
|
||||||
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user