Update src/error.rs
Co-authored-by: Jacob Hoffman-Andrews <github@hoffman-andrews.com>
This commit is contained in:
@@ -139,7 +139,7 @@ impl Transport {
|
|||||||
/// // classification
|
/// // classification
|
||||||
/// assert_eq!(error.kind(), ErrorKind::InvalidUrl);
|
/// assert_eq!(error.kind(), ErrorKind::InvalidUrl);
|
||||||
/// assert_eq!(error.kind().to_string(), "Bad URL");
|
/// assert_eq!(error.kind().to_string(), "Bad URL");
|
||||||
|
///
|
||||||
/// // higher level message
|
/// // higher level message
|
||||||
/// assert_eq!(error.message(), Some("failed to parse URL: RelativeUrlWithoutBase"));
|
/// assert_eq!(error.message(), Some("failed to parse URL: RelativeUrlWithoutBase"));
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user