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 @@ -9,6 +9,7 @@ import 'package:ht_dashboard/shared/constants/pagination_constants.dart';
9
9
import 'package:ht_dashboard/shared/shared.dart' ;
10
10
import 'package:ht_data_repository/ht_data_repository.dart' ;
11
11
import 'package:ht_shared/ht_shared.dart' ;
12
+ import 'package:ht_ui_kit/ht_ui_kit.dart' ;
12
13
13
14
/// {@template create_source_page}
14
15
/// A page for creating a new source.
@@ -94,7 +95,7 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
94
95
..hideCurrentSnackBar ()
95
96
..showSnackBar (
96
97
SnackBar (
97
- content: Text (state.errorMessage ?? l10n.unknownError ),
98
+ content: Text (state.exception ! . toFriendlyMessage (context) ),
98
99
backgroundColor: Theme .of (context).colorScheme.error,
99
100
),
100
101
);
@@ -112,7 +113,7 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
112
113
if (state.status == CreateSourceStatus .failure &&
113
114
state.countries.isEmpty) {
114
115
return FailureStateWidget (
115
- message : state.errorMessage ?? l10n.unknownError ,
116
+ exception : state.exception ! ,
116
117
onRetry: () => context.read <CreateSourceBloc >().add (
117
118
const CreateSourceDataLoaded (),
118
119
),
You can’t perform that action at this time.
0 commit comments