From 021aa7eb673c6f703a5f779f8c62633ebe57e812 Mon Sep 17 00:00:00 2001 From: Jonathan Keller Date: Sat, 29 Apr 2017 10:08:35 -0700 Subject: [PATCH] Always print the error to the console --- Sources/SwiftChatSE/ErrorHandler.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SwiftChatSE/ErrorHandler.swift b/Sources/SwiftChatSE/ErrorHandler.swift index 493b578..27eba8d 100644 --- a/Sources/SwiftChatSE/ErrorHandler.swift +++ b/Sources/SwiftChatSE/ErrorHandler.swift @@ -74,6 +74,7 @@ public func handleError(_ error: Error, _ context: String? = nil) { message1 = " An error (\(errorType)) occured\(contextStr):" } + print("\(message1)\n\(errorDetails)") if let room = errorRoom { room.postMessage(message1 + "\n " + errorDetails.replacingOccurrences(of: "\n", with: "\n ")) }