[macos] Canonicalized another exception name

This commit is contained in:
Minh Nguyễn
2018-08-15 08:46:58 -07:00
committed by Minh Nguyễn
parent 7795c76ce8
commit 2424582ee3
2 changed files with 4 additions and 1 deletions

View File

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

View File

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