Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format
Browse files Browse the repository at this point in the history
axel-op committed Apr 19, 2020

Verified

This commit was signed with the committer’s verified signature.
sparrc Cameron Sparr
1 parent 0f8f4fe commit d1ff9d1
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -80,10 +80,9 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
reason = [NSString stringWithFormat:@"thrown %@", context];
}

FIRExceptionModel *exception = [FIRExceptionModel
exceptionModelWithName:call.arguments[@"exception"]
reason:reason];

FIRExceptionModel *exception =
[FIRExceptionModel exceptionModelWithName:call.arguments[@"exception"] reason:reason];

exception.stackTrace = frames;

[[FIRCrashlytics crashlytics] recordExceptionModel:exception];
@@ -97,10 +96,10 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
}

- (FIRStackFrame *)generateFrame:(NSDictionary *)errorElement {
FIRStackFrame *frame = [FIRStackFrame
stackFrameWithSymbol:[errorElement valueForKey:@"method"]
file:[errorElement valueForKey:@"file"]
line:[[errorElement valueForKey:@"line"] intValue]];
FIRStackFrame *frame =
[FIRStackFrame stackFrameWithSymbol:[errorElement valueForKey:@"method"]
file:[errorElement valueForKey:@"file"]
line:[[errorElement valueForKey:@"line"] intValue]];
return frame;
}

0 comments on commit d1ff9d1

Please sign in to comment.