Skip to content

Commit e294cd0

Browse files
committed
services/brig/src/Brig/API/Handler.hs
1 parent e302ded commit e294cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/brig/src/Brig/API/Handler.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ where
3030

3131
import Bilge (RequestId (..))
3232
import Brig.API.Error
33-
import Brig.AWS qualified as AWS
3433
import Brig.App
3534
import Brig.CanonicalInterpreter (BrigCanonicalEffects, runBrigToIO)
3635
import Brig.Options (allowlistEmailDomains)
@@ -54,6 +53,7 @@ import Wire.API.Allowlists qualified as Allowlists
5453
import Wire.API.Error
5554
import Wire.API.Error.Brig
5655
import Wire.API.User
56+
import Wire.AWSSubsystem qualified as AWS
5757
import Wire.AuthenticationSubsystem.Error (zauthError)
5858
import Wire.Error
5959

@@ -100,7 +100,7 @@ brigErrorHandlers :: Logger -> ByteString -> [Catch.Handler IO (Either HttpError
100100
brigErrorHandlers logger reqId =
101101
[ Catch.Handler $ \(ex :: ZV.Failure) ->
102102
pure (Left (StdError (zauthError ex))),
103-
Catch.Handler $ \(ex :: AWS.Error) ->
103+
Catch.Handler $ \(ex :: AWS.AWSSubsystemError) ->
104104
case ex of
105105
AWS.SESInvalidDomain ->
106106
pure (Left (StdError (errorToWai @'InvalidEmail)))

0 commit comments

Comments
 (0)