mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-25 23:27:56 +00:00
Refactor error handling in AuthCubit and ServerFailure
Update error handling in AuthCubit to use toString() method and mdified handling of badResponse in ServerFailure class.
This commit is contained in:
@@ -66,7 +66,7 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
emit(AuthError('Something went wrong'));
|
||||
}
|
||||
} on DioException catch (e) {
|
||||
emit(AuthError(ServerFailure.fromDioError(e).errMessage));
|
||||
emit(AuthError(ServerFailure.fromDioError(e).toString()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user