Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented May 24, 2017

The current message is not helpful. Hardly anyone even remembers that bitcoind used to be a cli utility, let alone new users. Print what the actual problem is.

Inspired by discussion here: #10402 (comment)

Also remove the check for bitcoin: URIs. The expected output when accidentally passing a bitcoin: URI to bitcoind instead of bitcoin-qt would be an error not silent acceptance.

@jonasschnelli
Copy link
Contributor

I guess most users already interpret [...]There is no RPC client functionality [...] as "oh I missed a dash somewhere"....

utACK 8ec3a6bebb7c7d2a739e8827e3e0509638172504

@laanwj
Copy link
Member Author

laanwj commented May 24, 2017

I guess most users already interpret [...]There is no RPC client functionality [...] as "oh I missed a dash somewhere"....

Yeah.... "somewhere" :-)

@fanquake
Copy link
Member

utACK 8ec3a6b

src/bitcoind.cpp Outdated
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another realization - why are we checking for "bitcoin:" URLs at all bitcoind.cpp? Shouldn't they be treated as invalid tokens as well?

The current message is not helpful. Hardly anyone even remembers that
bitcoind used to be a cli utility, let alone new users. Print what the
actual problem is.
@laanwj laanwj force-pushed the 2017_05_bitcoind_commandline_error branch from 8ec3a6b to cd5622d Compare May 24, 2017 07:48
@sipa
Copy link
Member

sipa commented May 25, 2017

utACK cd5622d

1 similar comment
@jtimon
Copy link
Contributor

jtimon commented May 31, 2017

utACK cd5622d

@laanwj laanwj merged commit cd5622d into bitcoin:master Jun 1, 2017
laanwj added a commit that referenced this pull request Jun 1, 2017
cd5622d Make bitcoind invalid argument error message specific (Wladimir J. van der Laan)

Tree-SHA512: 78999b9359685c4090f9a112e1d02bdddac22173f5f04600773b042acb9481ebb54d0f73d9d6d74249f845f497927a58d59de69bf33e3dccf096c3c80c7ebf6b
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 24, 2019
…cific

cd5622d Make bitcoind invalid argument error message specific (Wladimir J. van der Laan)

Tree-SHA512: 78999b9359685c4090f9a112e1d02bdddac22173f5f04600773b042acb9481ebb54d0f73d9d6d74249f845f497927a58d59de69bf33e3dccf096c3c80c7ebf6b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants