File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/brig/src/Brig/API Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3030
3131import Bilge (RequestId (.. ))
3232import Brig.API.Error
33- import Brig.AWS qualified as AWS
3433import Brig.App
3534import Brig.CanonicalInterpreter (BrigCanonicalEffects , runBrigToIO )
3635import Brig.Options (allowlistEmailDomains )
@@ -54,6 +53,7 @@ import Wire.API.Allowlists qualified as Allowlists
5453import Wire.API.Error
5554import Wire.API.Error.Brig
5655import Wire.API.User
56+ import Wire.AWSSubsystem qualified as AWS
5757import Wire.AuthenticationSubsystem.Error (zauthError )
5858import Wire.Error
5959
@@ -100,7 +100,7 @@ brigErrorHandlers :: Logger -> ByteString -> [Catch.Handler IO (Either HttpError
100100brigErrorHandlers 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)))
You can’t perform that action at this time.
0 commit comments