Minor rename of DataError::Bail.

This commit is contained in:
Jordan Petridis 2018-02-05 19:05:40 +02:00
parent 44ebe46f10
commit 7eec01a52e
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View File

@ -37,7 +37,7 @@ pub enum DataError {
// Rss::Error is not yet Sync
RssCrateError(String),
#[fail(display = "Error: {}", _0)]
DiscountBail(String),
Bail(String),
#[fail(display = "Request to {} returned {}. Context: {}", url, status_code, context)]
HttpStatusError {
url: String,
@ -102,6 +102,6 @@ impl From<io::Error> for DataError {
impl From<String> for DataError {
fn from(err: String) -> Self {
DataError::DiscountBail(err)
DataError::Bail(err)
}
}