We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
resultErrorMessage
1 parent 4224b7d commit 3903ee6Copy full SHA for 3903ee6
src/Database/PostgreSQL/LibPQ.hsc
@@ -1045,8 +1045,8 @@ resStatus es =
1045
return $ B.fromForeignPtr fp 0 $ fromIntegral len
1046
1047
1048
--- | Returns the error message most recently generated by an operation
1049
--- on the connection.
+-- | Returns the error message associated with the command, or an
+-- empty string if there was no error.
1050
resultErrorMessage :: Result
1051
-> IO (Maybe B.ByteString)
1052
resultErrorMessage = flip maybeBsFromResult c_PQresultErrorMessage
0 commit comments