mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Add Exception for user's network issues to not be reported [skip ci]
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user