Index: pkg/analyzer_cli/lib/src/driver.dart |
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart |
index 22fec9e634c5a9a13251cbd5c71886b9d6267d89..680b6b3af76ccf6309159b05140be4ce5dea5ff6 100644 |
--- a/pkg/analyzer_cli/lib/src/driver.dart |
+++ b/pkg/analyzer_cli/lib/src/driver.dart |
@@ -225,7 +225,9 @@ class Driver implements CommandLineStarter { |
try { |
return await _analyzeAllImpl(options); |
} catch (e, st) { |
- crashReportSender.sendReport(e, stackTrace: st); |
+ // Catch and ignore any exceptions when reporting exceptions (network |
+ // errors or other). |
+ crashReportSender.sendReport(e, stackTrace: st).catchError((_) {}); |
rethrow; |
} finally { |
previous.makeCurrent(); |