Skip to content

Commit 3903ee6

Browse files
committed
fix documentation for resultErrorMessage
previously it had the doc string for `errorMessage`
1 parent 4224b7d commit 3903ee6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/PostgreSQL/LibPQ.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,8 +1045,8 @@ resStatus es =
10451045
return $ B.fromForeignPtr fp 0 $ fromIntegral len
10461046

10471047

1048-
-- | Returns the error message most recently generated by an operation
1049-
-- on the connection.
1048+
-- | Returns the error message associated with the command, or an
1049+
-- empty string if there was no error.
10501050
resultErrorMessage :: Result
10511051
-> IO (Maybe B.ByteString)
10521052
resultErrorMessage = flip maybeBsFromResult c_PQresultErrorMessage

0 commit comments

Comments
 (0)