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.hsindex 155851f..cd77e12 100644--- a/src/Radicle/Daemon/Client.hs+++ b/src/Radicle/Daemon/Client.hs@@ -113,7 +113,7 @@ wrapServantError action = docase result ofLeft (Servant.FailureResponse response) -> throwErrorHere $ DaemonError $ toS $ Servant.responseBody responseLeft e -> case e of- Servant.ConnectionError _ -> throwErrorHere $ DaemonError startDaemonHint+ Servant.ConnectionError ce -> throwErrorHere $ DaemonError $ startDaemonHint <> "\n\n" <> ce_ -> throwErrorHere $ DaemonError $ toS $ displayException eRight value -> pure valuewhere