Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in case of a success message don't print error #35

merged 1 commit into from Oct 25, 2019
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

in case of a success message don't print error

  • Loading branch information...
Lars Gregori
Lars Gregori committed Sep 2, 2019
commit 35a72c6e480ab29258f549321c20e6274f2c31c7
@@ -32,6 +32,10 @@ public class HueError: NSError, JSONDecodable {

public required init?(json: JSON) {

if let _: Any = "success" <~~ json {
return nil

guard let type: Int = "error.type" <~~ json,
let address: String = "error.address" <~~ json,
let errorDescription: String = "error.description" <~~ json
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.