We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab8d5d2 commit 900426bCopy full SHA for 900426b
firebase-database/src/iosMain/kotlin/dev/gitlive/firebase/database/database.kt
@@ -166,7 +166,7 @@ actual class DatabaseReference internal constructor(
166
},
167
andCompletionBlock = { error, _, snapshot ->
168
if (error != null) {
169
- throw error
+ throw DatabaseException(error.toString(), null)
170
} else {
171
deferred.complete(Result.success(DataSnapshot(snapshot!!)))
172
}
0 commit comments