Skip to content
Discussion options

You must be logged in to vote

Hey @emreond,

Every endpoint response conforming to Specialized has an error property populated with Instagram custom error messages.
For the ones returning a Wrapper you can, as pointed out in your log, just return the message.

let wrapper: Wrapper = /* assuming this is the wrapper */
if let status = wrapper.status.string(), status != "ok" {
   // Something went wrong…
   print(wrapper.message.string() ?? "Unknown error)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@emreond
Comment options

Answer selected by sbertix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants