Skip to content

Commit 56c1d3e

Browse files
committed
add async modifier
1 parent 8639115 commit 56c1d3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform-includes/capture-error/flutter.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ If you need a custom error handling zone which also provides automatic error rep
1313
This function automatically records calls to `print()` as `Breadcrumbs` and can be configured using `SentryOptions.enablePrintBreadcrumbs`.
1414

1515
```dart
16-
Sentry.runZonedGuarded(() {
16+
Sentry.runZonedGuarded(() async {
1717
WidgetsBinding.ensureInitialized();
1818
1919
// Errors before init will not be handled by Sentry
2020
21-
SentryFlutter.init(
21+
await SentryFlutter.init(
2222
(options) {
2323
...
2424
},

0 commit comments

Comments
 (0)