Skip to content
Snippets Groups Projects
Commit 86b16258 authored by Rodric Rabbah's avatar Rodric Rabbah
Browse files

Fix WhiskError.HTTPError for change in iOS SDK.

parent 10861e13
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class ViewController: UIViewController, CLLocationManagerDelegate {
whiskButton.invokeAction(parameters: MyActionParameters, actionCallback: { reply, error in
if let error = error {
print("Oh no! \(error)")
if case let WhiskError.HTTPError(description, statusCode) = error {
if case let WhiskError.HTTPError(description, statusCode, _) = error {
print("HttpError: \(description) statusCode:\(statusCode)")
}
} else if let reply = reply {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment