From a92dbb7cbcdb3c85f6726be61555050f9b00bd58 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Sat, 19 Dec 2015 01:51:31 +0100 Subject: [PATCH] Fixes code compilation on Xcode < 7.2 --- RxCocoa/Common/RxCocoa.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RxCocoa/Common/RxCocoa.swift b/RxCocoa/Common/RxCocoa.swift index f571c59d..3207c33c 100644 --- a/RxCocoa/Common/RxCocoa.swift +++ b/RxCocoa/Common/RxCocoa.swift @@ -194,7 +194,8 @@ public extension RxCocoaObjCRuntimeError { case let .Unknown(target): return "Unknown error occurred.\nTarget: `\(target)`" case let ObjectMessagesAlreadyBeingIntercepted(target, interceptionMechanism): - return "Collision between RxCocoa interception mechanism and \(interceptionMechanism == .KVO ? "KVO" : "other interception mechanism")." + let interceptionMechanismDescription = interceptionMechanism == .KVO ? "KVO" : "other interception mechanism" + return "Collision between RxCocoa interception mechanism and \(interceptionMechanismDescription)." + " To resolve this conflict please use this interception mechanism first.\nTarget: \(target)" case let SelectorNotImplemented(target): return "Trying to observe messages for selector that isn't implemented.\nTarget: \(target)"