Skip to content

Commit

Permalink
CreateNamedPipe: improve error message
Browse files Browse the repository at this point in the history
And fix haddock.
  • Loading branch information
coot committed Jul 26, 2021
1 parent 84ee095 commit d655c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/System/Win32/NamedPipes.hsc
Expand Up @@ -130,7 +130,7 @@ pIPE_UNLIMITED_INSTANCES = #const PIPE_UNLIMITED_INSTANCES
-- > Nothing
--
--
createNamedPipe :: String -- ^ pipe name of form @\.\pipe\{pipename}@
createNamedPipe :: String -- ^ pipe name of form @\\.\pipe\{pipename}@
-> OpenMode
-> PipeMode
-> DWORD -- ^ nMaxInstances
Expand All @@ -143,7 +143,7 @@ createNamedPipe name openMode pipeMode
nMaxInstances nOutBufferSize nInBufferSize
nDefaultTimeOut mb_attr =
withTString name $ \ c_name ->
failIf (==iNVALID_HANDLE_VALUE) "CreateNamedPipe" $
failIf (==iNVALID_HANDLE_VALUE) ("CreateNamedPipe ('" ++ name ++ "')") $
c_CreateNamedPipe c_name openMode pipeMode
nMaxInstances nOutBufferSize nInBufferSize
nDefaultTimeOut (maybePtr mb_attr)
Expand Down

0 comments on commit d655c7c

Please sign in to comment.