Common error handling

This commit is contained in:
Tomasz Drwięga
2016-03-17 15:49:29 +01:00
parent 833c5fdd31
commit 7ae60056b2
6 changed files with 24 additions and 17 deletions

View File

@@ -385,7 +385,7 @@ impl<C, S, A, M, EM> Eth for EthClient<C, S, A, M, EM>
nonce: client.nonce(a),
balance: client.balance(a),
});
match import {
match import.into_iter().collect::<Result<Vec<_>, _>>() {
Ok(_) => to_value(&hash),
Err(e) => {
warn!("Error sending transaction: {:?}", e);