File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:ht_dashboard/l10n/l10n.dart';
7
7
import 'package:ht_dashboard/shared/shared.dart' ;
8
8
import 'package:ht_data_repository/ht_data_repository.dart' ;
9
9
import 'package:ht_shared/ht_shared.dart' ;
10
+ import 'package:ht_ui_kit/ht_ui_kit.dart' ;
10
11
11
12
/// {@template edit_headline_page}
12
13
/// A page for editing an existing headline.
@@ -124,7 +125,7 @@ class _EditHeadlineViewState extends State<_EditHeadlineView> {
124
125
..hideCurrentSnackBar ()
125
126
..showSnackBar (
126
127
SnackBar (
127
- content: Text (state.errorMessage ?? l10n.unknownError ),
128
+ content: Text (state.exception ! . toFriendlyMessage (context) ),
128
129
backgroundColor: Theme .of (context).colorScheme.error,
129
130
),
130
131
);
@@ -148,7 +149,7 @@ class _EditHeadlineViewState extends State<_EditHeadlineView> {
148
149
if (state.status == EditHeadlineStatus .failure &&
149
150
state.initialHeadline == null ) {
150
151
return FailureStateWidget (
151
- message : state.errorMessage ?? l10n.unknownError ,
152
+ exception : state.exception ! ,
152
153
onRetry: () => context.read <EditHeadlineBloc >().add (
153
154
const EditHeadlineLoaded (),
154
155
),
You can’t perform that action at this time.
0 commit comments