Skip to content

Commit

Permalink
enh(flutter): improve verify code snippet in getting started (#12369)
Browse files Browse the repository at this point in the history
* Update index.mdx

* update dart snippet
  • Loading branch information
buenaflor authored Jan 20, 2025
1 parent ea4cfbc commit c5c59c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/platforms/flutter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Verify that your app is sending events to Sentry by adding the following snippet
import 'package:sentry/sentry.dart';
try {
aMethodThatMightFail();
throw Exception('Sentry Test Exception');
} catch (exception, stackTrace) {
await Sentry.captureException(
exception,
Expand Down
2 changes: 1 addition & 1 deletion platform-includes/capture-error/dart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ In Dart you can capture any exception object that you caught:
import 'package:sentry/sentry.dart';
try {
aMethodThatMightFail();
throw Exception('Sentry Test Exception');
} catch (exception, stackTrace) {
await Sentry.captureException(
exception,
Expand Down

0 comments on commit c5c59c5

Please sign in to comment.