-
Helllo, I am getting below error when trying to fetch User details with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @emreond, Every endpoint response conforming to 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)
}
|
Beta Was this translation helpful? Give feedback.
Hey @emreond,
Every endpoint response conforming to
Specialized
has anerror
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.