diff --git a/account.go b/account.go index fe3fbff..b34b563 100644 --- a/account.go +++ b/account.go @@ -357,6 +357,7 @@ func (a *Account) ImportWIFPrivateKey(wif string, bs *wallet.BlockStamp) (string a.mtx.Unlock() if err := a.writeDirtyToDisk(); err != nil { log.Errorf("cannot write dirty wallet: %v", err) + return "", fmt.Errorf("import failed: cannot write wallet: %v", err) } // Associate the imported address with this account.