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_topic_page}
12
13
/// A page for editing an existing topic.
@@ -116,7 +117,7 @@ class _EditTopicViewState extends State<_EditTopicView> {
116
117
..hideCurrentSnackBar ()
117
118
..showSnackBar (
118
119
SnackBar (
119
- content: Text (state.errorMessage ?? l10n.unknownError ),
120
+ content: Text (state.exception ! . toFriendlyMessage (context) ),
120
121
backgroundColor: Theme .of (context).colorScheme.error,
121
122
),
122
123
);
@@ -139,7 +140,7 @@ class _EditTopicViewState extends State<_EditTopicView> {
139
140
if (state.status == EditTopicStatus .failure &&
140
141
state.initialTopic == null ) {
141
142
return FailureStateWidget (
142
- message : state.errorMessage ?? l10n.unknownError ,
143
+ exception : state.exception ! ,
143
144
onRetry: () => context.read <EditTopicBloc >().add (
144
145
const EditTopicLoaded (),
145
146
),
You can’t perform that action at this time.
0 commit comments