wallet: don't mute exceptions in importdescriptors
This commit is contained in:
1 parent
bf68ebc1cd
commit
f1b7db1474
1 file changed
-4
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user