From 6fc8196f881675241cedb1b4bd570d956db624f3 Mon Sep 17 00:00:00 2001 From: Roman Baitaliuk Date: Sun, 14 Oct 2018 16:36:42 +1300 Subject: [PATCH] Refactored strings --- Sources/CWSError.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/CWSError.swift b/Sources/CWSError.swift index 2a23754..5d8bab3 100644 --- a/Sources/CWSError.swift +++ b/Sources/CWSError.swift @@ -28,9 +28,9 @@ public enum CWSError: Error, LocalizedError { case .pingJSONCastError(let array): return "Cannot cast array object to JSON with ping values, array object: \(array)." case .pingIntervalCastError(let json): return "Cannot cast ping interval as 'Double' from ping JSON, JSON: \(json)." case .binaryCastError(let json): return "Cannot cast ping binary as 'Bool' from ping JSON, JSON: \(json)." - case .binaryDecodeError(let message): return "Cannot convert binary message to string using UTF8, message: \(message)" - case .binaryEncodeError(let ping): return "Cannot encode ping message to binary, ping message: \(ping)" - case .failedToCastPingTimer: return "Failed to get ping timer from settings, might be a server set up error" + case .binaryDecodeError(let message): return "Cannot convert binary message to string using UTF8, message: \(message)." + case .binaryEncodeError(let ping): return "Cannot encode ping message to binary, ping message: \(ping)." + case .failedToCastPingTimer: return "Failed to get ping timer from settings, might be a server set up error." } } }