Skip to content

Commit

Permalink
Don't include stack trace in devtools error UI
Browse files Browse the repository at this point in the history
  • Loading branch information
simolus3 committed Feb 12, 2024
1 parent e1f7aa3 commit 30f30ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extras/drift_devtools_extension/lib/src/schema_validator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class DatabaseSchemaCheck extends ConsumerWidget {
TextSpan(text: message),
],
)),
AsyncError(:var error, :var stackTrace) => Text(
'The schema could not be validated due to an error: $error, ${stackTrace}'),
AsyncError(:var error) =>
Text('The schema could not be validated due to an error: $error'),
_ => Text.rich(TextSpan(
text: 'By validating your schema, you can ensure that the current '
'state of the database in your app (after migrations ran) '
Expand Down

0 comments on commit 30f30ba

Please sign in to comment.