aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-17 13:42:18 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-17 13:42:18 -0600
commit273693e46d8b2945f5e3020f35c960728b22b1ed (patch)
treea8010e1b0304aec9389623e12460d10c784f1c2d
parent192bf6d3d84d47bde194248d899551f24dfc5a94 (diff)
downloadetbsa-trackermap-mobile-273693e46d8b2945f5e3020f35c960728b22b1ed.tar.gz
etbsa-trackermap-mobile-273693e46d8b2945f5e3020f35c960728b22b1ed.tar.bz2
etbsa-trackermap-mobile-273693e46d8b2945f5e3020f35c960728b22b1ed.zip
Temporary fix: catch exceptions when retrieving positions
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
index 21692e7..71ccbbf 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/UnitsController.kt
@@ -61,6 +61,9 @@ class UnitsController(
}
unitsFlow.value = units
}
+ .catch {
+ print("Could not retrieve positions\n")
+ }
.launchIn(scope)
}