MLNStyle addSource
throws NSException instead of returning NSError
#2939
Labels
addSource
throws NSException instead of returning NSError
#2939
Describe the bug
Adding source via
MLNStyle.addSource()
twice causesMLNRedundantSourceIdentifierException
to be thrown. Since this is an Objective-C exception, AFAIK it is impossible to catch it from Swift without additional tooling in ObjC, ultimately causing my Flutter app to crash.To Reproduce
Steps to reproduce the behavior:
MLNStyle.addSource()
twice for the same source from SwiftExpected behavior
NSError should be returned so it can be properly handled.
Platform information (please complete the following information):
The text was updated successfully, but these errors were encountered: