Skip to content

Commit 2a43bc0

Browse files
chore: updated exception message when data is not present
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
1 parent 421d9ba commit 2a43bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/android/library/src/main/java/io/package/services/Realtime.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class Realtime(client: Client) : Service(client), CoroutineScope {
181181
}
182182

183183
private fun handleResponseError(message: RealtimeResponse) {
184-
throw message.data?.jsonCast<{{ spec.title | caseUcfirst }}Exception>() ?: RuntimeException("data is not present")
184+
throw message.data?.jsonCast<{{ spec.title | caseUcfirst }}Exception>() ?: RuntimeException("Data is not present")
185185
}
186186

187187
private suspend fun handleResponseEvent(message: RealtimeResponse) {

0 commit comments

Comments
 (0)