Skip to content

Commit 2cca2b5

Browse files
committed
Cleanup
1 parent d97df29 commit 2cca2b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,10 @@ impl DbError {
533533
detail: map.remove(&b'D'),
534534
hint: map.remove(&b'H'),
535535
position: match map.remove(&b'P') {
536-
Some(pos) => Some(ErrorPosition::Normal(try!(pos.parse().ok().ok_or(())))),
536+
Some(pos) => Some(ErrorPosition::Normal(try!(pos.parse().map_err(|_| ())))),
537537
None => match map.remove(&b'p') {
538538
Some(pos) => Some(ErrorPosition::Internal {
539-
position: try!(pos.parse().ok().ok_or(())),
539+
position: try!(pos.parse().map_err(|_| ())),
540540
query: try!(map.remove(&b'q').ok_or(()))
541541
}),
542542
None => None

0 commit comments

Comments
 (0)