Skip to content

Commit

Permalink
peer-state-actions: finish a todo
Browse files Browse the repository at this point in the history
Throw an io exception instead of an 'error "TODO"'.
  • Loading branch information
coot committed May 12, 2021
1 parent daafbd3 commit 55e8a04
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,9 @@ withPeerStateActions timeout
pure connHandle

Disconnected _ Nothing ->
-- TODO!
error "TODO"
-- Disconnected in 'TerminatingState' or 'TerminatedState' without
-- an exception.
throwIO $ userError "establishPeerConnection: Disconnected"
Disconnected _ (Just reason) ->
case reason of
HandleHandshakeClientError err -> do
Expand Down

0 comments on commit 55e8a04

Please sign in to comment.