bitcoind returns an useful error when invalid hex is passed to -signetchallenge:
$ bitcoind -signet -signetchallenge=z
Error: -signetchallenge must be hex, not 'z'
The error returned by bitcoin-cli only indicates that the RPC cookie wasn't found. It doesn't hint at invalid hex:
$ bitcoin-cli -signet -signetchallenge=z getblockcount
error: Authorization failed: ...
Is your -signetchallenge correct for custom signets?
To have consistent validation of signet args in bitcoind and bitcoin-cli, we now parse -signetchallenge in a new ReadSigNetChallengeArg() function which is called in ReadSigNetDir() and ReadSigNetArgs().
Addresses #34566 (review)
I didn't add a release note because I don't think this change of an error message warrants one.