Skip to content

Commit 17b1266

Browse files
author
ntwigg
committed
Less aggressive error reporting.
1 parent 294c6e9 commit 17b1266

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

natives/mac-deep-link/DeepLinkBridge.m

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@ static void abortWithMessage(NSString *message) {
2828

2929
// Most aggressive crash - direct null pointer dereference
3030
// This causes SIGSEGV which is very hard to catch
31-
volatile int *p = NULL;
32-
*p = 42;
33-
34-
// Fallbacks in case the above somehow doesn't work
35-
__builtin_trap();
36-
abort();
31+
[[NSNotificationCenter defaultCenter]
32+
postNotificationName:@"DiffPlug diffplug:// protocol error"
33+
object:nil
34+
userInfo:@{@"error": message}];
3735
}
3836

3937
#pragma mark - JNI bootstrap

0 commit comments

Comments
 (0)