aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-23 23:34:29 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-23 23:34:29 -0600
commit52a5e19b28875a1943f672804f07f59291a38bc3 (patch)
tree002f8cdf9955937d972f01a58f958218132e95aa /shared/src/commonMain/kotlin/mx
parent9cd2dd61c285d96199a892d6e1046f745d2aeec3 (diff)
downloadetbsa-trackermap-mobile-52a5e19b28875a1943f672804f07f59291a38bc3.tar.gz
etbsa-trackermap-mobile-52a5e19b28875a1943f672804f07f59291a38bc3.tar.bz2
etbsa-trackermap-mobile-52a5e19b28875a1943f672804f07f59291a38bc3.zip
Added printStackTrace to SessionController.kt methods
Diffstat (limited to 'shared/src/commonMain/kotlin/mx')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
index a945ee9..afa6dc2 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/controllers/SessionController.kt
@@ -65,6 +65,7 @@ class SessionController(
userFlow.value = sessionApi.sessionGet()
loginStateFlow.value = LoginState.Success
} catch (e: Exception) {
+ e.printStackTrace()
loginStateFlow.value = LoginState.Nothing
}
}
@@ -102,6 +103,7 @@ class SessionController(
token?.let { registerFcmToken(it) }
loginStateFlow.value = LoginState.Success
} catch (e: Exception) {
+ e.printStackTrace()
loginStateFlow.value = LoginState.Failure
}
}