[ios, macos] Streamlined a string format

This commit is contained in:
Minh Nguyễn
2016-12-13 17:37:44 -08:00
committed by Minh Nguyễn
parent ef71597932
commit d34356ce39

View File

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