diff options
author | Jorge Canizales <jcanizales@google.com> | 2016-07-29 15:58:10 -0700 |
---|---|---|
committer | Jorge Canizales <jcanizales@google.com> | 2016-07-29 15:58:10 -0700 |
commit | fb3a71d9c095623eacde0a42ec6ad118c69fb2b2 (patch) | |
tree | 180d3359f45bcf6dd79a01ebef3c3106bff677ba /src | |
parent | 7a2bc14fc0f5ad3b70ac9c47d37ec96625ba80dc (diff) |
Fix usage of proto message parsing
On account of https://github.com/google/protobuf/pull/1712
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/examples/SwiftSample/ViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/examples/SwiftSample/ViewController.swift b/src/objective-c/examples/SwiftSample/ViewController.swift index e7bab13762..66d4fa9412 100644 --- a/src/objective-c/examples/SwiftSample/ViewController.swift +++ b/src/objective-c/examples/SwiftSample/ViewController.swift @@ -91,7 +91,7 @@ class ViewController: UIViewController { call.startWithWriteable(GRXWriteable { response, error in if let response = response as? NSData { - NSLog("3. Received response:\n\(RMTSimpleResponse(data: response, error: nil))") + NSLog("3. Received response:\n\(try! RMTSimpleResponse(data: response))") } else { NSLog("3. Finished with error: \(error!)") } |