From 2424582ee3b343da7d2582fc739c5587361dad21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Wed, 15 Aug 2018 08:46:58 -0700 Subject: [macos] Canonicalized another exception name --- platform/macos/CHANGELOG.md | 1 + platform/macos/src/MGLMapView+IBAdditions.mm | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/macos/CHANGELOG.md b/platform/macos/CHANGELOG.md index 1c1454de4d..64cbc4fb00 100644 --- a/platform/macos/CHANGELOG.md +++ b/platform/macos/CHANGELOG.md @@ -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 diff --git a/platform/macos/src/MGLMapView+IBAdditions.mm b/platform/macos/src/MGLMapView+IBAdditions.mm index cef2863ee6..0c65abc031 100644 --- a/platform/macos/src/MGLMapView+IBAdditions.mm +++ b/platform/macos/src/MGLMapView+IBAdditions.mm @@ -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; -- cgit v1.2.1