config: improve error message

Previously, the error message had one missing space:
"... either --bitcoin.mainnet, or bitcoin.testnet,bitcoin.simnet, ..."

I added a space after "bitcoin.testnet,".
This commit is contained in:
Boris Nagaev 2024-11-18 11:24:16 -03:00
parent 1bc25c1136
commit 3360d285fb
No known key found for this signature in database

View file

@ -1261,7 +1261,7 @@ func ValidateConfig(cfg Config, interceptor signal.Interceptor, fileParser,
// The target network must be provided, otherwise, we won't // The target network must be provided, otherwise, we won't
// know how to initialize the daemon. // know how to initialize the daemon.
if numNets == 0 { if numNets == 0 {
str := "either --bitcoin.mainnet, or bitcoin.testnet," + str := "either --bitcoin.mainnet, or bitcoin.testnet, " +
"bitcoin.simnet, bitcoin.regtest or bitcoin.signet " + "bitcoin.simnet, bitcoin.regtest or bitcoin.signet " +
"must be specified" "must be specified"