diff options
| author | LLLL Colonq <llll@colonq> | 2025-06-03 02:36:57 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-06-03 02:36:57 -0400 |
| commit | a931453581d7aa9882469d30fc4fda7c246b08e7 (patch) | |
| tree | 9e4de6f6a69bbe42a5938867f325169693f1f2ca /fig-bus | |
| parent | be16af95746133d221338f5a70b8ff16cc2fe7da (diff) | |
fig-bus: Cleanup error messages
Diffstat (limited to 'fig-bus')
| -rw-r--r-- | fig-bus/src/Fig/Bus/Binary.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fig-bus/src/Fig/Bus/Binary.hs b/fig-bus/src/Fig/Bus/Binary.hs index 5f465ec..9a75e04 100644 --- a/fig-bus/src/Fig/Bus/Binary.hs +++ b/fig-bus/src/Fig/Bus/Binary.hs @@ -2,7 +2,6 @@ module Fig.Bus.Binary (main) where import Fig.Prelude -import Control.Monad (when) import Control.Concurrent.MVar as MVar import qualified Data.List as List @@ -56,14 +55,14 @@ main bind = do IORef.modifyIORef' subs (ev:) MVar.modifyMVar_ st (pure . subscribe ev h) go - _else -> log "malformed subscription" + _else -> log "Malformed subscription" 112 -> (,) <$> readEvent h <*> readLengthPrefixed h >>= \case (Just ev@(EventType e), Just d) -> do log $ tshow peer <> " publishing to: " <> tshow e publish ev d =<< MVar.readMVar st go - _else -> log "malformed publish" - w -> log $ "unknown command code: " <> tshow w + _else -> log "Malformed publish" + w -> log $ "Unknown command code: " <> tshow w go , do ss <- IORef.readIORef subs |
