You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** Exception: Network.Socket.connect: <socket: 41>: does not exist (Connection refused)
I think it's supposed to return Left (ConnectionError e) instead of raising an IOException.
For now, I work around the issue with
import System.IO.Error (catchIOError)
import qualified Network.MPD as M
catchIOError (M.withMPD M.status) $ return . Left . M.ConnectionError
The text was updated successfully, but these errors were encountered:
crocket
changed the title
When mpd server doesn't exist, withMPD raises an exception.
withMPD raises an IOException instead of returning Left (ConnectionError e)
Oct 29, 2019
crocket
changed the title
withMPD raises an IOException instead of returning Left (ConnectionError e)
withMPD raises IOException instead of returning Left (ConnectionError e)
Oct 30, 2019
This happens to me as well. On my machine "localhost" first resolves to ::1 but MPD isn't listening on the IPv6 interface so the connection fails. Other tools (such as ncmpcpp) fall back to 127.0.0.1.
I think it's supposed to return
Left (ConnectionError e)
instead of raising anIOException
.For now, I work around the issue with
The text was updated successfully, but these errors were encountered: