Skip to content

Commit 3d47ff4

Browse files
committed
Fix crash if error contains formatting strings.
1 parent c237197 commit 3d47ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/SocketEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ public final class SocketEngine : NSObject, SocketEnginePollable, SocketEngineWe
263263
}
264264

265265
public func didError(error: String) {
266-
DefaultSocketLogger.Logger.error(error, type: logType)
266+
DefaultSocketLogger.Logger.error("%@", type: logType, args: error)
267267
client?.engineDidError(error)
268268
disconnect(error)
269269
}

0 commit comments

Comments
 (0)