[ios, macos] Fix typo in exception name for style source identifier (#7315)
This commit is contained in:
@@ -203,7 +203,7 @@ static const NSInteger MGLStyleDefaultVersion = 9;
|
||||
@note Adding the same source instance more than once will result in a
|
||||
`MGLRedundantSourceException`. Reusing the same source identifier, even with
|
||||
different source instances, will result in a
|
||||
`MGLRedundantSourceIdentiferException`.
|
||||
`MGLRedundantSourceIdentifierException`.
|
||||
|
||||
@param source The source to add to the current style.
|
||||
*/
|
||||
|
||||
@@ -191,7 +191,7 @@ static NSURL *MGLStyleURL_emerald;
|
||||
try {
|
||||
[source addToMapView:self.mapView];
|
||||
} catch (std::runtime_error & err) {
|
||||
[NSException raise:@"MGLRedundantSourceIdentiferException" format:@"%s", err.what()];
|
||||
[NSException raise:@"MGLRedundantSourceIdentifierException" format:@"%s", err.what()];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
MGLVectorSource *source2 = [[MGLVectorSource alloc] initWithIdentifier:@"my-source" URL:[NSURL URLWithString:@"mapbox://mapbox.mapbox-terrain-v2"]];
|
||||
|
||||
[self.style addSource: source1];
|
||||
XCTAssertThrowsSpecificNamed([self.style addSource: source2], NSException, @"MGLRedundantSourceIdentiferException");
|
||||
XCTAssertThrowsSpecificNamed([self.style addSource: source2], NSException, @"MGLRedundantSourceIdentifierException");
|
||||
}
|
||||
|
||||
- (void)testAddingLayersTwice {
|
||||
|
||||
Reference in New Issue
Block a user