lib/cogy/capistrano/cogy.rake in cogy-0.5.1 vs lib/cogy/capistrano/cogy.rake in cogy-0.5.2

- old
+ new

@@ -15,10 +15,10 @@ Timeout.timeout(fetch(:cogy_trigger_timeout) || 7) do url = URI(trigger_url) res = Net::HTTP.post_form(url, url: cogy_endpoint) if !res.is_a?(Net::HTTPSuccess) - error = JSON.parse(res.body)["errors"]["error_message"] + error = JSON.parse(res.body)["pipeline_output"]["error_message"] if error !~ /version has already been taken/ puts "Error response (#{res.code}) from Cog trigger: #{error}" end end end