diff options
Diffstat (limited to 'fig-bus/src/Fig/Bus/Binary/Client.hs')
| -rw-r--r-- | fig-bus/src/Fig/Bus/Binary/Client.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fig-bus/src/Fig/Bus/Binary/Client.hs b/fig-bus/src/Fig/Bus/Binary/Client.hs index a2e601f..e1226d8 100644 --- a/fig-bus/src/Fig/Bus/Binary/Client.hs +++ b/fig-bus/src/Fig/Bus/Binary/Client.hs @@ -45,7 +45,7 @@ busClient loc@(host, port) onConn onData onQuit = catchFailure . client loc $ pu forever do (,) <$> readLengthPrefixed h <*> readLengthPrefixed h >>= \case (Just ev, Just d) -> liftIO $ onData cmds ev d - _else -> throwM . FigBusClientException $ "Server sent malformed data" + _else -> throwM . FigBusClientException $ "Connection to bus closed" , liftIO onQuit ) where |
