diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index a7eb3a4d..632e537b 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -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) {