Skip to content

Commit 9290c2a

Browse files
authored
fix(core): should call handle_session() when query fail. (#359)
1 parent 4c3041b commit 9290c2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,10 @@ impl APIClient {
323323
}
324324

325325
let resp: QueryResponse = resp.json().await?;
326+
self.handle_session(&resp.session).await;
326327
if let Some(err) = resp.error {
327328
return Err(Error::InvalidResponse(err));
328329
}
329-
self.handle_session(&resp.session).await;
330330
self.handle_warnings(&resp);
331331
Ok(resp)
332332
}

0 commit comments

Comments
 (0)