Closed Gummiees closed 1 year ago
If you disable the network, it should throw a SocketException, yet it throws Unknown Error. This is because e.toString() does not contain SocketException:. The value for e.toString() is:
SocketException
Unknown Error
e.toString()
SocketException:
Failed host lookup: 'cognito-idp.eu-west-1.amazonaws.com'
This should solve this issue: https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/207
@Gummiees thank you for your contribution. Available as of 3.4.0
If you disable the network, it should throw a
SocketException
, yet it throwsUnknown Error
. This is becausee.toString()
does not containSocketException:
. The value fore.toString()
is:This should solve this issue: https://github.com/furaiev/amazon-cognito-identity-dart-2/issues/207