Commit a8592a4
committed
refactor(user-management): add robust error handling to app role changes
This commit enhances the _onUserAppRoleChanged method in the UserManagementBloc by introducing a try-catch block and detailed logging.
This change mirrors the robust implementation of _onUserDashboardRoleChanged, ensuring that any errors during the update process are caught, logged, and handled gracefully, preventing the BLoC's event stream from crashing and improving the overall stability of the user management feature.1 parent 59f855c commit a8592a4
1 file changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
188 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
189 | 207 | | |
190 | 208 | | |
0 commit comments