Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ - (void)recordError:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallRes
}

if (![reason isEqual:[NSNull null]]) {
reason = [NSString stringWithFormat:@"%@. Error thrown %@.", dartExceptionMessage, reason];
// Log additional custom value to match Android.
[[FIRCrashlytics crashlytics] setCustomValue:[NSString stringWithFormat:@"thrown %@", reason]
forKey:@"flutter_error_reason"];
reason = [NSString stringWithFormat:@"%@. Error thrown %@.", dartExceptionMessage, reason];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test to test the output? and make sure it matches between the platforms?

} else {
reason = dartExceptionMessage;
}
Expand Down
Loading