diff --git a/dart/example_web/web/main.dart b/dart/example_web/web/main.dart index 3c0305b49e..7e349b7276 100644 --- a/dart/example_web/web/main.dart +++ b/dart/example_web/web/main.dart @@ -24,6 +24,7 @@ Future main() async { Future runApp() async { print('runApp'); + // ignore: deprecated_member_use document.querySelector('#output')?.text = 'Your Dart app is running.'; await Sentry.addBreadcrumb( diff --git a/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart b/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart index d101c3431d..19e2ec5fac 100644 --- a/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart +++ b/dart/lib/src/event_processor/enricher/io_enricher_event_processor.dart @@ -78,21 +78,7 @@ class IoEnricherEventProcessor implements EnricherEventProcessor { String? executable; if (_options.sendDefaultPii) { - try { - // This throws sometimes for some reason - // https://github.com/flutter/flutter/issues/83921 - executable = Platform.executable; - } catch (exception, stackTrace) { - _options.logger( - SentryLevel.error, - 'Platform.executable couldn\'t be retrieved.', - exception: exception, - stackTrace: stackTrace, - ); - if (_options.automatedTestMode) { - rethrow; - } - } + executable = Platform.executable; } return {