diff options
Diffstat (limited to 'btc-wire')
-rw-r--r-- | btc-wire/src/btc_config.rs | 4 | ||||
-rw-r--r-- | btc-wire/src/lib.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/btc-wire/src/btc_config.rs b/btc-wire/src/btc_config.rs index 0c8114b..fa61c6f 100644 --- a/btc-wire/src/btc_config.rs +++ b/btc-wire/src/btc_config.rs @@ -87,14 +87,14 @@ impl BitcoinConfig { let port = if let Some(addr) = section.and_then(|s| s.get("rpcport")) { addr.parse() - .or_fail(|_| "bitcoin config value 'rpcport' is not a valid port number".into()) + .or_fail(|_| "bitcoin config 'rpcport' is not a valid port number".into()) } else { rpc_port(network) }; let addr = if let Some(addr) = section.and_then(|s| s.get("rpcbind")) { SocketAddr::from_str(addr) - .or_fail(|_| "bitcoin config value 'rpcbind' is not a valid socket address".into()) + .or_fail(|_| "bitcoin config 'rpcbind' is not a valid socket address".into()) } else { ([127, 0, 0, 1], port).into() }; diff --git a/btc-wire/src/lib.rs b/btc-wire/src/lib.rs index 0027073..4bc533e 100644 --- a/btc-wire/src/lib.rs +++ b/btc-wire/src/lib.rs @@ -202,7 +202,7 @@ fn config_bounce_fee(bounce_fee: &Option<String>, currency: CurrencyBtc) -> Amou .and_then(|a| taler_to_btc(&a, currency)) .or_fail(|a| { format!( - "config value BOUNCE_FEE={} is not a valid bitcoin amount: {}", + "config BOUNCE_FEE={} is not a valid bitcoin amount: {}", config, a ) }) |