Skip to content

Commit e85579e

Browse files
committed
feat(dashboard): Update DashboardBloc to emit HtHttpException
1 parent 2094a7d commit e85579e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dashboard/bloc/dashboard_bloc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ class DashboardBloc extends Bloc<DashboardEvent, DashboardState> {
6060
emit(
6161
state.copyWith(
6262
status: DashboardStatus.failure,
63-
errorMessage: e.message,
63+
exception: e,
6464
),
6565
);
6666
} catch (e) {
6767
emit(
6868
state.copyWith(
6969
status: DashboardStatus.failure,
70-
errorMessage: 'An unknown error occurred: $e',
70+
exception: UnknownException('An unknown error occurred: $e'),
7171
),
7272
);
7373
}

0 commit comments

Comments
 (0)