diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b00246..4c28970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All changes in this project will be noted in this file. +## 0.8.9 + +### Additions + +- Added enhanced multi-row decode support +- Added deref to slice for rows + +### Fixes + +- Fixed error propagation in `FromResponse` impls + ## 0.8.8 ### Fixes diff --git a/Cargo.toml b/Cargo.toml index 5271980..7d21d89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ license = "Apache-2.0" name = "skytable" readme = "README.md" repository = "https://github.com/skytable/client-rust" -version = "0.8.8" +version = "0.8.9" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] diff --git a/src/response.rs b/src/response.rs index 2c44580..a6a6a25 100644 --- a/src/response.rs +++ b/src/response.rs @@ -329,6 +329,7 @@ impl FromResponse for Row { fn from_response(resp: Response) -> ClientResult { match resp { Response::Row(r) => Ok(r), + Response::Error(e) => Err(Error::ServerError(e)), _ => Err(Error::ParseError(ParseError::ResponseMismatch)), } } @@ -338,6 +339,7 @@ impl FromResponse for Vec { fn from_response(resp: Response) -> ClientResult { match resp { Response::Rows(rows) => Ok(rows), + Response::Error(e) => Err(Error::ServerError(e)), _ => Err(Error::ParseError(ParseError::ResponseMismatch)), } } @@ -376,6 +378,7 @@ impl FromResponse for Rows { } Ok(Self(ret)) } + Response::Error(e) => Err(Error::ServerError(e)), _ => Err(Error::ParseError(ParseError::ResponseMismatch)), } }