Skip to content

A peer-to-peer stack for code collaboration

feat: Print connection error when client can't connect to radicle daemon. (#603)

James Haydon70499f384e76
diff --git a/src/Radicle/Daemon/Client.hs b/src/Radicle/Daemon/Client.hs
index 155851f..cd77e12 100644
--- a/src/Radicle/Daemon/Client.hs
+++ b/src/Radicle/Daemon/Client.hs
@@ -113,7 +113,7 @@ wrapServantError action = do
case result of
Left (Servant.FailureResponse response) -> throwErrorHere $ DaemonError $ toS $ Servant.responseBody response
Left e -> case e of
- Servant.ConnectionError _ -> throwErrorHere $ DaemonError startDaemonHint
+ Servant.ConnectionError ce -> throwErrorHere $ DaemonError $ startDaemonHint <> "\n\n" <> ce
_ -> throwErrorHere $ DaemonError $ toS $ displayException e
Right value -> pure value
where