Fix notice handling
This commit is contained in:
parent
7243455c94
commit
a90154dfdb
@ -329,7 +329,7 @@ impl InnerConnection {
|
||||
loop {
|
||||
match try_desync!(self, self.stream.read_message()) {
|
||||
backend::Message::NoticeResponse(body) => {
|
||||
if let Ok(err) = Err(err(&mut body.fields())) {
|
||||
if let Ok(err) = DbError::new(&mut body.fields()){
|
||||
self.notice_handler.handle_notice(err);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user