Skip to content

Commit c5c59c5

Browse files
authored
enh(flutter): improve verify code snippet in getting started (#12369)
* Update index.mdx * update dart snippet
1 parent ea4cfbc commit c5c59c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/platforms/flutter/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Verify that your app is sending events to Sentry by adding the following snippet
123123
import 'package:sentry/sentry.dart';
124124
125125
try {
126-
aMethodThatMightFail();
126+
throw Exception('Sentry Test Exception');
127127
} catch (exception, stackTrace) {
128128
await Sentry.captureException(
129129
exception,

platform-includes/capture-error/dart.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ In Dart you can capture any exception object that you caught:
44
import 'package:sentry/sentry.dart';
55
66
try {
7-
aMethodThatMightFail();
7+
throw Exception('Sentry Test Exception');
88
} catch (exception, stackTrace) {
99
await Sentry.captureException(
1010
exception,

0 commit comments

Comments
 (0)