We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb3612 commit d54960bCopy full SHA for d54960b
lib/authentication/bloc/authentication_bloc.dart
@@ -84,7 +84,8 @@ class AuthenticationBloc
84
emit(AuthenticationFailure('Operation failed: ${e.message}'));
85
} on HtHttpException catch (e) {
86
// Catch any other HtHttpException subtypes
87
- emit(AuthenticationFailure('HTTP error: ${e.message}'));
+ final message = e.message.isNotEmpty ? e.message : 'An unspecified HTTP error occurred.';
88
+ emit(AuthenticationFailure('HTTP error: $message'));
89
} catch (e) {
90
// Catch any other unexpected errors
91
emit(AuthenticationFailure('An unexpected error occurred: $e'));
0 commit comments