Skip to content

Commit

Permalink
Fix bugs in errRecoverNoErrBadConn
Browse files Browse the repository at this point in the history
Last-minute changes to commits without running go test.. tsk tsk.
  • Loading branch information
johto committed May 2, 2015
1 parent 53b185f commit 93e9980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,9 @@ func errRecoverNoErrBadConn(err *error) {
return
}
var ok bool
err, ok = e.(error)
*err, ok = e.(error)
if !ok {
err = fmt.Errorf("pq: unexpected error: %#v", e)
*err = fmt.Errorf("pq: unexpected error: %#v", e)
}
}

Expand Down

0 comments on commit 93e9980

Please sign in to comment.