3
0
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:
Mike Hearn 2014-01-13 14:25:01 +01:00
parent fa53806ef5
commit d50412e24c

View File

@ -315,6 +315,9 @@ public class Wallet implements Serializable, BlockChainListener, PeerFilterProvi
} else if (!temp.renameTo(destFile)) {
throw new IOException("Failed to rename " + temp + " to " + destFile);
}
} catch (RuntimeException e) {
log.error("Failed whilst saving wallet", e);
throw e;
} finally {
lock.unlock();
if (stream != null) {