Skip to content

Commit

Permalink
feat: show prettier messages in error dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Jun 28, 2024
1 parent b219727 commit 4353c7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/app_center/lib/store/store_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class _StoreAppHome extends ConsumerWidget {
Future<void> _showError(BuildContext context, SnapdException e) {
return showErrorDialog(
context: context,
title: e.kind ?? 'Unknown Snapd Exception',
message: e.message,
title: UbuntuLocalizations.of(context).errorLabel,
message: e.prettyFormat(AppLocalizations.of(context)),
);
}

Expand Down
1 change: 0 additions & 1 deletion packages/app_center/test/store_app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ void main() {
await tester.pump();

expect(find.text('error message'), findsOneWidget);
expect(find.text('error kind'), findsOneWidget);
});
});
}

0 comments on commit 4353c7f

Please sign in to comment.