mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
wallet: don't mute exceptions in importdescriptors
This commit is contained in:
parent
bf68ebc1cd
commit
f1b7db1474
1 changed files with 0 additions and 4 deletions
|
@ -1590,10 +1590,6 @@ static UniValue ProcessDescriptorImport(CWallet& wallet, const UniValue& data, c
|
||||||
} catch (const UniValue& e) {
|
} catch (const UniValue& e) {
|
||||||
result.pushKV("success", UniValue(false));
|
result.pushKV("success", UniValue(false));
|
||||||
result.pushKV("error", e);
|
result.pushKV("error", e);
|
||||||
} catch (...) {
|
|
||||||
result.pushKV("success", UniValue(false));
|
|
||||||
|
|
||||||
result.pushKV("error", JSONRPCError(RPC_MISC_ERROR, "Missing required fields"));
|
|
||||||
}
|
}
|
||||||
if (warnings.size()) result.pushKV("warnings", warnings);
|
if (warnings.size()) result.pushKV("warnings", warnings);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Add table
Reference in a new issue