Add Exception for user's network issues to not be reported [skip ci]

This commit is contained in:
OmarHatem 2023-02-01 17:24:36 +02:00
parent aba1d80899
commit 08ff37e23c

View file

@ -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) {