Skip to content

Commit

Permalink
Merge pull request #373 from adam-p/ios-beta
Browse files Browse the repository at this point in the history
Fix compile warning
  • Loading branch information
adam-p committed May 17, 2017
2 parents 813f43f + 7522327 commit ebc3dc3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class ViewController: UIViewController {
let task = session.dataTask(with: request) {
(data: Data?, response: URLResponse?, error: Error?) in
if error != nil {
NSLog("Client-side error in request to \(url): \(error)")
NSLog("Client-side error in request to \(url): \(String(describing: error))")
// Invoke the callback indicating error.
completion(nil)
return
Expand All @@ -134,7 +134,7 @@ class ViewController: UIViewController {

let httpResponse = response as? HTTPURLResponse
if httpResponse?.statusCode != 200 {
NSLog("Server-side error in request to \(url): \(httpResponse)")
NSLog("Server-side error in request to \(url): \(String(describing: httpResponse))")
// Invoke the callback indicating error.
completion(nil)
return
Expand Down Expand Up @@ -178,7 +178,7 @@ class ViewController: UIViewController {
let task = URLSession.shared.dataTask(with: URL(string: proxiedURL)!) {
(data: Data?, response: URLResponse?, error: Error?) in
if error != nil {
NSLog("Client-side error in request to \(url): \(error)")
NSLog("Client-side error in request to \(url): \(String(describing: error))")
// Invoke the callback indicating error.
completion(nil)
return
Expand All @@ -193,7 +193,7 @@ class ViewController: UIViewController {

let httpResponse = response as? HTTPURLResponse
if httpResponse?.statusCode != 200 {
NSLog("Server-side error in request to \(url): \(httpResponse)")
NSLog("Server-side error in request to \(url): \(String(describing: httpResponse))")
// Invoke the callback indicating error.
completion(nil)
return
Expand Down

0 comments on commit ebc3dc3

Please sign in to comment.