Translate appearance and outfit parity tests
This commit is contained in:
@@ -57,6 +57,8 @@ pub enum Error {
|
||||
IndexOutOfRange,
|
||||
/// An operation observed a requested cancellation.
|
||||
Cancelled,
|
||||
/// An HTTP request completed with an unsuccessful response.
|
||||
HttpRequest,
|
||||
}
|
||||
|
||||
impl Error {
|
||||
@@ -69,7 +71,8 @@ impl Error {
|
||||
| Self::Argument
|
||||
| Self::InvalidOperation
|
||||
| Self::IndexOutOfRange
|
||||
| Self::Cancelled => None,
|
||||
| Self::Cancelled
|
||||
| Self::HttpRequest => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -91,6 +94,7 @@ impl fmt::Display for Error {
|
||||
}
|
||||
Self::IndexOutOfRange => formatter.write_str("index was out of range"),
|
||||
Self::Cancelled => formatter.write_str("operation was cancelled"),
|
||||
Self::HttpRequest => formatter.write_str("HTTP request failed"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user