Skip to content

Commit 33e0e21

Browse files
committed
fix(content_management): display specific exception in failure state
- Replaced generic error message. - Now shows the specific exception. - Improves error handling clarity.
1 parent 35fc611 commit 33e0e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/content_management/view/headlines_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class _HeadlinesPageState extends State<HeadlinesPage> {
5252

5353
if (state.headlinesStatus == ContentManagementStatus.failure) {
5454
return FailureStateWidget(
55-
message: state.errorMessage ?? l10n.unknownError,
55+
exception: state.exception!,
5656
onRetry: () => context.read<ContentManagementBloc>().add(
5757
const LoadHeadlinesRequested(limit: kDefaultRowsPerPage),
5858
),

0 commit comments

Comments
 (0)