Skip to content

Commit

Permalink
write logs for exceptions in viewModel
Browse files Browse the repository at this point in the history
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
  • Loading branch information
sowjanyakch committed Nov 18, 2024
1 parent 4dc1352 commit 489f9f0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class ConversationInfoViewModel @Inject constructor(
_getTalkBanState.value = ListBansSuccessState(listBans)
} catch (exception: Exception) {
_getTalkBanState.value = ListBansErrorState
Log.e(TAG, "Error while getting list of banned participants", exception)
}
}
}
Expand All @@ -165,6 +166,7 @@ class ConversationInfoViewModel @Inject constructor(
_getBanActorState.value = BanActorSuccessState(talkBan)
} catch (exception: Exception) {
_getBanActorState.value = BanActorErrorState
Log.e(TAG, "Error banning a participant", exception)
}
}
}
Expand Down Expand Up @@ -201,6 +203,7 @@ class ConversationInfoViewModel @Inject constructor(
_getUnBanActorState.value = UnBanActorSuccessState
} catch (exception: Exception) {
_getUnBanActorState.value = UnBanActorErrorState
Log.e(TAG, "Error while unbanning a participant", exception)
}
}
}
Expand Down

0 comments on commit 489f9f0

Please sign in to comment.