File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/content_management/view Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class _CreateHeadlineViewState extends State<_CreateHeadlineView> {
95
95
..hideCurrentSnackBar ()
96
96
..showSnackBar (
97
97
SnackBar (
98
- content: Text (state.errorMessage ?? l10n.unknownError ),
98
+ content: Text (state.exception ! . toFriendlyMessage (context) ),
99
99
backgroundColor: Theme .of (context).colorScheme.error,
100
100
),
101
101
);
@@ -115,7 +115,7 @@ class _CreateHeadlineViewState extends State<_CreateHeadlineView> {
115
115
state.topics.isEmpty &&
116
116
state.countries.isEmpty) {
117
117
return FailureStateWidget (
118
- message : state.errorMessage ?? l10n.unknownError ,
118
+ exception : state.exception ! ,
119
119
onRetry: () => context.read <CreateHeadlineBloc >().add (
120
120
const CreateHeadlineDataLoaded (),
121
121
),
You can’t perform that action at this time.
0 commit comments