Files
bitcoin/src
Wladimir J. van der Laan 55f490a79f Merge #12652: bitcoin-cli: Provide a better error message when bitcoind is not running
8b2ef27 tests: Test connecting with non-existing RPC cookie file (practicalswift)
a2b2476 tests: Test connecting to a non-existing server (practicalswift)
de04fde bitcoin-cli: Provide a better error message when bitcoind is not running (practicalswift)

Pull request description:

  Provide a better `bitcoin-cli` error message when `bitcoind` is not running.

  Before this patch:

  ```
  $ killall -9 bitcoind
  $ bitcoin-cli -testnet echo 'hello world'
  error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set.  See -rpcpassword and -stdinrpcpass.  Configuration file: (/root/.bitcoin/bitcoin.conf)
  ```

  After this patch:

  ```
  $ killall -9 bitcoind
  $ bitcoin-cli -testnet echo 'hello world'
  error: Could not connect to the server 127.0.0.1:18332

  Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
  ```

Tree-SHA512: bb16e1a9a1ac110ee202c3cb99b5d7c5c1e5487a17e6cd101e12dc69e9525c14dc71f37b128c26ad615369a57547f15d0f1e29b207c1b2f2ee4b4ba7105f3433
2018-03-20 10:42:10 +01:00
..
2018-02-16 08:59:28 -05:00
2017-09-29 16:02:39 +02:00
2018-02-10 09:55:54 -05:00
2018-03-06 21:52:53 +01:00
2018-02-11 10:48:15 +01:00
2018-03-06 19:52:19 +00:00
2018-03-06 19:52:19 +00:00
2018-03-13 17:04:31 -07:00
2018-02-27 11:42:06 -08:00
2018-03-13 17:04:31 -07:00
2018-03-13 19:12:35 +01:00
2018-01-23 13:16:56 -05:00
2018-01-10 20:55:41 -10:00
2018-03-14 23:10:39 -07:00
2018-03-06 19:52:19 +00:00
2018-01-28 13:21:25 +01:00
2017-10-29 21:12:12 +08:00
2018-01-09 08:59:21 -05:00
2018-03-06 20:28:08 -08:00
2018-03-06 19:52:19 +00:00