summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2017-10-03 20:30:41 -0400
committerFabian Guerra <fabian.guerra@mapbox.com>2017-10-03 20:30:41 -0400
commit73f84e7d24bb1f75e4fb11ee4f2086aa70a76444 (patch)
treedbd5ac2b7fa107af865825cd334d0f6db6e863a0
parenta072ecc0a9b60891feef003e5fd5b436fa83db87 (diff)
downloadqtlocation-mapboxgl-upstream/fabian-snapshoter-9920.tar.gz
[ios, macos] Use one of the predefined Foundation's exception names.upstream/fabian-snapshoter-9920
-rw-r--r--platform/darwin/src/MGLMapSnapshotter.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.mm b/platform/darwin/src/MGLMapSnapshotter.mm
index 5901f36e5d..12b932daa3 100644
--- a/platform/darwin/src/MGLMapSnapshotter.mm
+++ b/platform/darwin/src/MGLMapSnapshotter.mm
@@ -110,7 +110,7 @@ const CGFloat MGLSnapshotterMinimumPixelSize = 64;
- (void)startWithQueue:(dispatch_queue_t)queue completionHandler:(MGLMapSnapshotCompletionHandler)completion;
{
if ([self isLoading]) {
- [NSException raise:@"MGLAlreadyStartedSnapshotterException"
+ [NSException raise:NSInternalInconsistencyException
format:@"Already started this snapshotter."];
}