[ios, macos] Fix typo in exception name for style source identifier (#7315)

This commit is contained in:
Jesse Bounds
2016-12-07 10:47:06 -08:00
committed by GitHub
parent 508f020eb5
commit 497953c34e
3 changed files with 3 additions and 3 deletions

View File

@@ -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.
*/

View File

@@ -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()];
}
}

View File

@@ -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 {