mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-16 17:27:37 +00:00
Add Exception for user's network issues to not be reported [skip ci]
This commit is contained in:
parent
aba1d80899
commit
08ff37e23c
1 changed files with 5 additions and 0 deletions
|
@ -207,6 +207,11 @@ void _sendExceptionFile() async {
|
|||
}
|
||||
|
||||
void _onError(FlutterErrorDetails errorDetails) {
|
||||
// Add Exception for user's network connection issues to not be reported
|
||||
if (errorDetails.exception.toString().contains("Software caused connection abort")) {
|
||||
return;
|
||||
}
|
||||
|
||||
_saveException(errorDetails.exception.toString(), errorDetails.stack);
|
||||
|
||||
if (hasError) {
|
||||
|
|
Loading…
Reference in a new issue