-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix build on master 🔧💚 #157
Conversation
👍 |
@@ -82,7 +84,7 @@ impl Requester<SignedHeader, Header> for MockRequester { | |||
return Ok(sh.into()); | |||
} | |||
println!("couldn't get sh for: {}", &h); | |||
Err(Error::RequestFailed) | |||
fail!(Kind::RequestFailed, "couldn't get sh for: {}", &h); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a shortcut for
return Kind::RequestFailed.context(format!("couldn't get sh for: {}", &h)).into();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I was close but didn't know about this shortcut. Thanks!
use serde::{de::Error as _, Deserialize, Deserializer, Serialize}; | ||
use serde_json; | ||
use std::collections::HashMap; | ||
use std::convert::TryInto; | ||
use std::{fs, path::PathBuf}; | ||
use tendermint::block::{Header, Height}; | ||
use tendermint::lite::{Error, Requester, TrustThresholdFraction, TrustedState}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Errors moved into their own module as per #149
Codecov Report
@@ Coverage Diff @@
## master #157 +/- ##
=========================================
Coverage ? 35.36%
=========================================
Files ? 91
Lines ? 3184
Branches ? 504
=========================================
Hits ? 1126
Misses ? 1773
Partials ? 285 Continue to review full report at Codecov.
|
closes #156