cleanup client errors (#771)

This commit is contained in:
Svyatoslav Nikolsky
2018-09-19 16:26:36 +03:00
committed by Gav Wood
parent 9b369c4150
commit 04e22cd795
2 changed files with 5 additions and 29 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ impl<B, E, Block> Client<B, E, Block> where
Some(cached_value) => Ok(cached_value),
None => self.executor.call(id, "authorities",&[])
.and_then(|r| Vec::<AuthorityId>::decode(&mut &r.return_data[..])
.ok_or(error::ErrorKind::AuthLenInvalid.into()))
.ok_or(error::ErrorKind::InvalidAuthoritiesSet.into()))
}
}