diff options
author | manuroe <manu@matrix.org> | 2016-11-14 16:54:51 +0100 |
---|---|---|
committer | manuroe <manu@matrix.org> | 2016-11-14 16:54:51 +0100 |
commit | cf66af6f2e7c69a3e0712317f8473ab09711d426 (patch) | |
tree | 425ad41ff31014973628daa8054772939e53edcd /xcode/OLMKit/OLMUtility.m | |
parent | 27a8c28da4e5c62d8863ee3d30642109d713c4d6 (diff) |
OLMKit: Replaced NSAsserts by NSErrors
Diffstat (limited to 'xcode/OLMKit/OLMUtility.m')
-rw-r--r-- | xcode/OLMKit/OLMUtility.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xcode/OLMKit/OLMUtility.m b/xcode/OLMKit/OLMUtility.m index 292fc21..3c6ce6e 100644 --- a/xcode/OLMKit/OLMUtility.m +++ b/xcode/OLMKit/OLMUtility.m @@ -10,6 +10,8 @@ #include "olm/olm.h" +NSString *const OLMErrorDomain = @"org.matrix.olm"; + @interface OLMUtility() @property (nonatomic) OlmUtility *utility; @@ -61,7 +63,7 @@ size_t result = olm_sha256(_utility, message.bytes, message.length, shaData.mutableBytes, shaData.length); if (result == olm_error()) { const char *error = olm_utility_last_error(_utility); - NSAssert(NO, @"olm_sha256 error: %s", error); + NSLog(@"olm_sha256 error: %s", error); return nil; } |