summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/darwin/src/MGLShape.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLShape.mm b/platform/darwin/src/MGLShape.mm
index ee14027cd8..93a3b37e93 100644
--- a/platform/darwin/src/MGLShape.mm
+++ b/platform/darwin/src/MGLShape.mm
@@ -19,7 +19,7 @@
} catch (std::runtime_error &err) {
if (outError) {
*outError = [NSError errorWithDomain:MGLErrorDomain code:MGLErrorCodeUnknown userInfo:@{
- NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:@"%s", err.what()],
+ NSLocalizedFailureReasonErrorKey: @(err.what()),
}];
}
return nil;