summaryrefslogtreecommitdiff
path: root/src/Erebos/ICE.chs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-03-11 20:22:33 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-03-21 20:15:21 +0100
commit83d291f476a9793012a7aabb27c3cf59c7bdea05 (patch)
tree42b60eac72c25df8280e412e706acbae80fa7a8b /src/Erebos/ICE.chs
parentf612d03ac7d5fb00fa76c3be14d965ab51988504 (diff)
Generic type for MonadError constraints
Changelog: API: MonadError constraints use generic error type
Diffstat (limited to 'src/Erebos/ICE.chs')
-rw-r--r--src/Erebos/ICE.chs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Erebos/ICE.chs b/src/Erebos/ICE.chs
index e0b1b34..06edecf 100644
--- a/src/Erebos/ICE.chs
+++ b/src/Erebos/ICE.chs
@@ -21,7 +21,6 @@ module Erebos.ICE (
import Control.Arrow
import Control.Concurrent.MVar
import Control.Monad
-import Control.Monad.Except
import Control.Monad.Identity
import Data.ByteString (ByteString, packCStringLen, useAsCString)
@@ -118,7 +117,7 @@ instance StorableText IceCandidate where
, icandPort = port
, icandType = ctype
}
- _ -> throwError "failed to parse candidate"
+ _ -> throwOtherError "failed to parse candidate"
{#enum pj_ice_sess_role as IceSessionRole {underscoreToCase} deriving (Show, Eq) #}