lib/jiralicious/base.rb in jiralicious-0.2.2 vs lib/jiralicious/base.rb in jiralicious-0.3.0

- old
+ new

@@ -100,14 +100,14 @@ Proc.new do |response| case response.code when 200..204 response when 400 - raise Jiralicious::TransitionError.new(response['errorMessages'].join('\n')) + raise Jiralicious::TransitionError.new(response) when 404 - raise Jiralicious::IssueNotFound.new(response['errorMessages'].join('\n')) + raise Jiralicious::IssueNotFound.new(response) else - raise Jiralicious::JiraError.new(response['errorMessages'].join('\n')) + raise Jiralicious::JiraError.new(response) end end end alias :all :find_all