Skip to content

Commit 900426b

Browse files
Fix ios error thrown
1 parent ab8d5d2 commit 900426b

File tree

1 file changed

+1
-1
lines changed
  • firebase-database/src/iosMain/kotlin/dev/gitlive/firebase/database

1 file changed

+1
-1
lines changed

firebase-database/src/iosMain/kotlin/dev/gitlive/firebase/database/database.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ actual class DatabaseReference internal constructor(
166166
},
167167
andCompletionBlock = { error, _, snapshot ->
168168
if (error != null) {
169-
throw error
169+
throw DatabaseException(error.toString(), null)
170170
} else {
171171
deferred.complete(Result.success(DataSnapshot(snapshot!!)))
172172
}

0 commit comments

Comments
 (0)