diff --git a/lib/infrastructure/create_home/create_home_repository.dart b/lib/infrastructure/create_home/create_home_repository.dart index ef27c58b1..7cb5acb51 100644 --- a/lib/infrastructure/create_home/create_home_repository.dart +++ b/lib/infrastructure/create_home/create_home_repository.dart @@ -205,10 +205,9 @@ class CreateHomeRepository implements ICreateHomeRepository { // log.error(e.toString()); return left(CreateHomeFailure.unexpected(failedValue: e.message)); } + } catch (error) { + return left(CreateHomeFailure.unexpected(failedValue: error.toString())); } - return left( - const CreateHomeFailure.unexpected(failedValue: 'Not implemented yet'), - ); } @override diff --git a/lib/infrastructure/manage_wifi/manage_wifi_repository.dart b/lib/infrastructure/manage_wifi/manage_wifi_repository.dart index 2baa5f1d5..39f59f074 100644 --- a/lib/infrastructure/manage_wifi/manage_wifi_repository.dart +++ b/lib/infrastructure/manage_wifi/manage_wifi_repository.dart @@ -100,7 +100,6 @@ class ManageWiFiRepository implements IManageNetworkRepository { // if (isAPEnabled || true) { return right(unit); // } - return left(const HomeUserFailures.accessPointIsNotOpen()); } catch (e) { return left(const HomeUserFailures.unexpected()); }