Skip to content

Commit

Permalink
Merge branch '0.6.x' into 0.7.x
Browse files Browse the repository at this point in the history
Conflicts:
	src/bitcoinrpc.cpp
  • Loading branch information
luke-jr committed Nov 29, 2012
2 parents 0dba651 + 6634e6d commit d53af9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,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;
}
Expand Down

0 comments on commit d53af9c

Please sign in to comment.