aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 15:58:10 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2016-07-29 15:58:10 -0700
commitfb3a71d9c095623eacde0a42ec6ad118c69fb2b2 (patch)
tree180d3359f45bcf6dd79a01ebef3c3106bff677ba /src
parent7a2bc14fc0f5ad3b70ac9c47d37ec96625ba80dc (diff)
Fix usage of proto message parsing
Diffstat (limited to 'src')
-rw-r--r--src/objective-c/examples/SwiftSample/ViewController.swift2
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!)")
}