Skip to content

Commit c96e60e

Browse files
committed
Fallback to status description
1 parent 8b1c53d commit c96e60e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/RNGrpc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class RNGrpc: RCTEventEmitter {
229229
"id": callId,
230230
"type": "error",
231231
"code": status?.code.rawValue ?? -1,
232-
"error": status?.message! ?? "",
232+
"error": status?.message ?? status?.description ?? "",
233233
"trailers": NSDictionary(dictionary: trailers)
234234
]
235235

0 commit comments

Comments
 (0)