Plugin-specific exceptions

This commit is contained in:
Ryan Heise 2020-08-07 22:11:28 +10:00
parent 1e3716e722
commit 0524d4302b
3 changed files with 42 additions and 9 deletions

View file

@ -820,7 +820,7 @@
}
- (void)sendErrorForItem:(IndexedPlayerItem *)playerItem {
FlutterError *flutterError = [FlutterError errorWithCode:[NSString stringWithFormat:@"%d", playerItem.error]
FlutterError *flutterError = [FlutterError errorWithCode:[NSString stringWithFormat:@"%d", playerItem.error.code]
message:playerItem.error.localizedDescription
details:nil];
[self sendError:flutterError playerItem:playerItem];