aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-cli.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-03-25 21:36:22 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-04-21 12:55:31 +0200
commit1276090705060fcc97072481c2383bbaaa556194 (patch)
tree5c0dd2919c625592979b2cef7ba484bca11e06c1 /src/bitcoin-cli.cpp
parent1c6fcea20524d79975f81c3110408e8b5fea8731 (diff)
downloadbitcoin-1276090705060fcc97072481c2383bbaaa556194.tar.xz
util, refactor: Use GetPathArg to read "-conf" value
Also "includeconf" values been normalized.
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r--src/bitcoin-cli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp
index dea46693bc..8f7b836a7c 100644
--- a/src/bitcoin-cli.cpp
+++ b/src/bitcoin-cli.cpp
@@ -801,7 +801,7 @@ static UniValue CallRPC(BaseRequestHandler* rh, const std::string& strMethod, co
if (failedToGetAuthCookie) {
throw std::runtime_error(strprintf(
"Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (%s)",
- fs::PathToString(GetConfigFile(gArgs.GetArg("-conf", BITCOIN_CONF_FILENAME)))));
+ fs::PathToString(GetConfigFile(gArgs.GetPathArg("-conf", BITCOIN_CONF_FILENAME)))));
} else {
throw std::runtime_error("Authorization failed: Incorrect rpcuser or rpcpassword");
}