Skip to content

Commit

Permalink
Always print the error to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Keller committed Apr 29, 2017
1 parent c921525 commit 021aa7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftChatSE/ErrorHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 "))
}
Expand Down

0 comments on commit 021aa7e

Please sign in to comment.