diff options
| author | Luke Dashjr <[email protected]> | 2012-11-29 03:35:44 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-11-29 03:35:44 +0000 |
| commit | 3a72e91e3a94b87962aadbfbe555c88ed7029443 (patch) | |
| tree | 04f71dd1100fdea7ce57a80f566c58144a9159e6 /src | |
| parent | Merge branch '0.5.x' into 0.6.0.x (diff) | |
| parent | Merge branch '0.4.x' into 0.5.x (diff) | |
| download | discoin-3a72e91e3a94b87962aadbfbe555c88ed7029443.tar.xz discoin-3a72e91e3a94b87962aadbfbe555c88ed7029443.zip | |
Merge branch '0.5.x' into 0.6.0.x
Diffstat (limited to 'src')
| -rw-r--r-- | src/bitcoinrpc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bitcoinrpc.cpp b/src/bitcoinrpc.cpp index 8899b1183..b0bd25bf8 100644 --- a/src/bitcoinrpc.cpp +++ b/src/bitcoinrpc.cpp @@ -1511,7 +1511,8 @@ Value backupwallet(const Array& params, bool fHelp) "Safely copies wallet.dat to destination, which can be a directory or a path with filename."); string strDest = params[0].get_str(); - BackupWallet(*pwalletMain, strDest); + if (!BackupWallet(*pwalletMain, strDest)) + throw JSONRPCError(RPC_WALLET_ERROR, "Error: Wallet backup failed!"); return Value::null; } |