3 minor findings
Findings
[minor] · External-signer subprocess failures are reported as internal RPC errors
For an external-signer wallet, subprocess failures during send, sendall, walletprocesspsbt or bumpfee now return -32603 instead of -1, incorrectly classifying configuration or communication failures as internal bugs.
Location: src/rpc/server.cpp:893 (head).
Details and suggested fix
With signing enabled and an incomplete PSBT, FillPSBT calls GetExternalSigner() and then SignTransaction(). A configured -signer command that cannot run, exits nonzero or emits invalid JSON throws from RunCommandParseJSON. Enumeration wraps runtime failures in ExternalSignerError, but signtx still exposes plain std::runtime_error failures. Neither exception is handled along these signing paths, so both reach this fallback. Empty signer lists and structured signer errors use the existing in-band error paths and are not affected. The request still fails before transaction commitment; only its error category changes.
Wrap SignTransaction subprocess failures in ExternalSignerError too, then catch that type before std::exception here and return RPC_MISC_ERROR. A central catch alone would miss the currently unwrapped signtx failures.
[minor] · GUI address display loses translated signer errors
In the direct, single-process GUI wallet path, signer-response validation failures now lose available translations and appear in a critical dialog instead of a warning.
Location: src/wallet/external_signer_scriptpubkeyman.cpp:75 (head).
Details and suggested fix
When an external signer reports an error, omits the address or echoes a different address, these branches now throw ExternalSignerError containing only .original instead of returning a bilingual util::Error. WalletModel::displayAddress consequently shows e.what() in a critical “Can't display address” dialog rather than .translated in the “Signer error” warning. Translations for all three messages exist, including German. Keep returning util::Error for these response-validation failures. This also preserves the intended RPC behavior because walletdisplayaddress already maps unsuccessful results to RPC_MISC_ERROR.
[minor] · dumptxoutset output failures receive inconsistent RPC codes
A snapshot output failure now returns -32603 if detected during writing but -1 if detected at close, although both returned -1 before this PR.
Location: src/rpc/blockchain.cpp:3467 (head).
Details and suggested fix
After the output file opens successfully, a short fwrite, for example when the disk fills, makes AutoFile::write throw std::ios_base::failure. The snapshot-writing call chain does not catch it, so the new generic fallback reports RPC_INTERNAL_ERROR, unlike the explicit RPC_MISC_ERROR at fclose here. Exceptions from output-path fs::status and fs::rename, and temporary-directory creation during on-disk rollback, also reach that fallback. Translate exceptions from snapshot writes and those filesystem operations to RPC_MISC_ERROR. Keep the separate CHECK_NONFATAL coin-count consistency failure classified as internal.