diff options
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 36be662..fa408c2 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -17,6 +17,7 @@ pub enum Error { Encoding(FromUtf8Error), InvalidResponse(String), Fault { code: StatusCode, message: String }, + ConnectionNotUpgraded, } impl From<SerdeError> for Error { @@ -59,6 +60,7 @@ impl fmt::Display for Error { write!(f, "Response doesn't have the expected format: {}", cause) } Error::Fault { code, .. } => write!(f, "{}", code), + Error::ConnectionNotUpgraded => write!(f, "expected the docker host to upgrade the HTTP connection but it did not"), } } } |