mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-30 10:25:12 +02:00
By throwing a custom exception from `Univalue::checkType` (instead of a plain std::runtime_error) and catching it on the RPC server request handler. So we properly return RPC_TYPE_ERROR (-3) on arg type errors and not the general RPC_MISC_ERROR (-1).
5.2 KiB
Executable File
5.2 KiB
Executable File