Open theganyo opened 11 years ago
Wow. This really sucks. It would have been nice to just capture the status code and output my own error.
My hack solution:
begin
organization.create_application form.app_name
status = "success"
rescue
status = "failure or application already exists"
end
Actually, the code you have is correct and expected. usergrid_iron wraps the restclient gem which has the default behavior of returning "the response itself for code in 200..206, redirection for 301, 302 and 307 in get and head cases, redirection for 303 and an exception in other cases."
Is there a way to disable the debug output for each usergrid command?
Try something like: Usergrid::LOG.level = Logger::WARN
Sweet. Thanks man! :+1:
No problem!
Hey, sorry to throw this into this issue thread, but why are there two different independently maintained usergrid iOS SDKs?
I believe just legacy. But everything is being moved over to Apache now anyway... so that will be the official repo of all things Usergrid. :)
This shouldn't happen:
when a response like this is processed: