Skip to content

Commit

Permalink
chore(error): improve message about incomplete parsed messages
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 26, 2018
1 parent 1156e17 commit 1f95f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ impl StdError for Error {
Kind::Parse(Parse::Header) => "invalid Header provided",
Kind::Parse(Parse::TooLarge) => "message head is too large",
Kind::Parse(Parse::Status) => "invalid Status provided",
Kind::Incomplete => "message is incomplete",
Kind::Incomplete => "parsed HTTP message from remote is incomplete",
Kind::MismatchedResponse => "response received without matching request",
Kind::Closed => "connection closed",
Kind::Connect => "an error occurred trying to connect",
Expand Down
2 changes: 1 addition & 1 deletion tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ test! {
url: "http://{addr}/err",
headers: {},
body: None,
error: |err| err.to_string() == "message is incomplete",
error: |err| err.to_string() == "parsed HTTP message from remote is incomplete",
}

test! {
Expand Down

0 comments on commit 1f95f58

Please sign in to comment.