Skip to content

Commit

Permalink
[Functions] Fix iOS exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
walkingbrad committed Jun 2, 2022
1 parent f3ec8f6 commit 6024a69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ suspend inline fun <T> T.await(function: T.(callback: (NSError?) -> Unit) -> Uni
if(error == null) {
job.complete(Unit)
} else {
job.completeExceptionally(FirebaseFunctionsException(error.toString()))
job.completeExceptionally(FirebaseFunctionsException(error.localizedDescription))
}
}
job.await()
Expand All @@ -75,7 +75,7 @@ suspend inline fun <T, reified R> T.awaitResult(function: T.(callback: (R?, NSEr
if(error == null) {
job.complete(result)
} else {
job.completeExceptionally(FirebaseFunctionsException(error.toString()))
job.completeExceptionally(FirebaseFunctionsException(error.localizedDescription))
}
}
return job.await() as R
Expand Down

0 comments on commit 6024a69

Please sign in to comment.