We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81a25a8 commit 1e6b28dCopy full SHA for 1e6b28d
src/lib.rs
@@ -199,10 +199,10 @@ pub fn parse_v2_response(reader: impl Read) -> Result<QueryResult, String> {
199
200
// Check for errors in DataSetCompletion
201
for frame in &frames {
202
- if frame.get("FrameType").and_then(|f| f.as_str()) == Some("DataSetCompletion") {
203
- if frame.get("HasErrors").and_then(|h| h.as_bool()) == Some(true) {
204
- return Err("Query returned errors (HasErrors: true)".into());
205
- }
+ if frame.get("FrameType").and_then(|f| f.as_str()) == Some("DataSetCompletion")
+ && frame.get("HasErrors").and_then(|h| h.as_bool()) == Some(true)
+ {
+ return Err("Query returned errors (HasErrors: true)".into());
206
}
207
208
0 commit comments