Skip to content

Commit

Permalink
Tweak error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gino-m committed Mar 1, 2024
1 parent 43ac294 commit cbda0a4
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,8 @@ class HomeScreenMapContainerFragment : AbstractMapContainerFragment() {
* This method should only be called after view creation.
*/
private suspend fun showDataCollectionHint() {
check(this::mapContainerViewModel.isInitialized) {
"showDataCollectionHint called before mapContainerViewModel was initialized"
}
check(this::binding.isInitialized) {
"showDataCollectionHint called before binding was initialized"
}
check(this::mapContainerViewModel.isInitialized) { "mapContainerViewModel not initialized" }
check(this::binding.isInitialized) { "binding not initialized" }
mapContainerViewModel.surveyUpdateFlow.collect {
val messageId =
when {
Expand Down

0 comments on commit cbda0a4

Please sign in to comment.