Skip to content

Commit a90154d

Browse files
committed
Fix notice handling
1 parent 7243455 commit a90154d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl InnerConnection {
329329
loop {
330330
match try_desync!(self, self.stream.read_message()) {
331331
backend::Message::NoticeResponse(body) => {
332-
if let Ok(err) = Err(err(&mut body.fields())) {
332+
if let Ok(err) = DbError::new(&mut body.fields()){
333333
self.notice_handler.handle_notice(err);
334334
}
335335
}

0 commit comments

Comments
 (0)