diff options
author | Riz <rsattar@gmail.com> | 2017-09-13 17:43:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 17:43:17 -0700 |
commit | 446c5c026702af69ffa203b58128fad7e7c0ff88 (patch) | |
tree | a50839a4dd98b86c00f63d9a738961c7d81cbe6a /Example/Messaging | |
parent | e69e62beb269b08764e603b0fa517cf1f8d4f00b (diff) |
Remove FIRMessaging_FAIL macro, log result code (#265)
This removes the `FIRMessaging_FAIL` macro which was using `__builtin_trap()`, and replaced with `NSAssert` calls. These `NSAssert` calls may not get called in release builds, and so we also log them with FIRLogger error messages.
The RMQ database open error result code is now parsed and included in the error message to help us identify causes for #199 .
Diffstat (limited to 'Example/Messaging')
-rw-r--r-- | Example/Messaging/Tests/FIRMessagingFakeSocket.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Example/Messaging/Tests/FIRMessagingFakeSocket.m b/Example/Messaging/Tests/FIRMessagingFakeSocket.m index 2b0b477..cffe69a 100644 --- a/Example/Messaging/Tests/FIRMessagingFakeSocket.m +++ b/Example/Messaging/Tests/FIRMessagingFakeSocket.m @@ -66,7 +66,7 @@ self.inStream = CFBridgingRelease(inputStreamRef); self.outStream = CFBridgingRelease(outputStreamRef); if (!self.inStream || !self.outStream) { - FIRMessaging_FAIL(@"cannot create a fake socket"); + NSAssert(NO, @"Cannot create a fake socket"); return; } |