[macos] Canonicalized another exception name
This commit is contained in:
committed by
Minh Nguyễn
parent
7795c76ce8
commit
2424582ee3
@@ -4,6 +4,7 @@
|
||||
|
||||
- Don't default-show text/icons that depend on the placement of a paired icon/text [#12483](https://github.com/mapbox/mapbox-gl-native/issues/12483)
|
||||
- Fix the `-[MGLMapView annotationAtPoint:]` method near tile boundaries at high zoom. ([#12472](https://github.com/mapbox/mapbox-gl-native/issues/12472))
|
||||
* Fixed inconsistencies in exception naming. ([#12583](https://github.com/mapbox/mapbox-gl-native/issues/12583))
|
||||
|
||||
## Styles and rendering
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#import "MGLMapView+IBAdditions.h"
|
||||
|
||||
#import "MGLStyle.h"
|
||||
|
||||
#import "MGLMapView_Private.h"
|
||||
|
||||
@implementation MGLMapView (IBAdditions)
|
||||
@@ -17,7 +19,7 @@
|
||||
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
|
||||
NSURL *url = URLString.length ? [NSURL URLWithString:URLString] : nil;
|
||||
if (URLString.length && !url) {
|
||||
[NSException raise:@"Invalid style URL"
|
||||
[NSException raise:MGLInvalidStyleURLException
|
||||
format:@"“%@” is not a valid style URL.", URLString];
|
||||
}
|
||||
self.styleURL = url;
|
||||
|
||||
Reference in New Issue
Block a user