diff --git a/JFRWebSocket.m b/JFRWebSocket.m index 22d7d0a..436d24d 100644 --- a/JFRWebSocket.m +++ b/JFRWebSocket.m @@ -776,7 +776,7 @@ - (NSError*)errorWithDetail:(NSString*)detail code:(NSInteger)code - (NSError*)errorWithDetail:(NSString*)detail code:(NSInteger)code userInfo:(NSDictionary *)userInfo { NSMutableDictionary* details = [NSMutableDictionary dictionary]; - details[detail] = NSLocalizedDescriptionKey; + details[NSLocalizedDescriptionKey] = detail; if (userInfo) { [details addEntriesFromDictionary:userInfo]; }