Browse Source

Skip logging handled errors to sentry

Neeraj Gupta 3 years ago
parent
commit
a6f7974278
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/utils/file_uploader.dart

+ 2 - 0
lib/utils/file_uploader.dart

@@ -467,6 +467,8 @@ class FileUploader {
     } catch (e, s) {
     } catch (e, s) {
       if (!(e is NoActiveSubscriptionError ||
       if (!(e is NoActiveSubscriptionError ||
           e is StorageLimitExceededError ||
           e is StorageLimitExceededError ||
+          e is WiFiUnavailableError ||
+          e is NoActiveSubscriptionError ||
           e is FileTooLargeForPlanError)) {
           e is FileTooLargeForPlanError)) {
         _logger.severe("File upload failed for " + file.toString(), e, s);
         _logger.severe("File upload failed for " + file.toString(), e, s);
       }
       }