Skip to content

Commit

Permalink
Use ConfigError variant.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0gent committed Jun 19, 2018
1 parent 45d643c commit 56e9ce1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bridge/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ impl Node {

// Ensure that the contract address is specified for non-deploy builds:
if cfg!(not(feature = "deploy")) && node.contract_address.is_none() {
return Err("Contract address not specified. Please define the 'contract_address' \
key within both the '[home]' and '[foreign]' tables in the toml config file. \
See 'https://github.com/poanetwork/poa-bridge/blob/master/README.md' for more.".into())
return Err(ErrorKind::ConfigError("Contract address not specified. Please define the \
'contract_address' key within both the '[home]' and '[foreign]' tables in the \
toml config file. See 'https://github.com/poanetwork/poa-bridge/blob/master/README.md' \
for more.".into()).into());
}

Ok(node)
Expand Down

0 comments on commit 56e9ce1

Please sign in to comment.