app/assets/javascripts/teaspoon/hook.coffee in teaspoon-1.1.5 vs app/assets/javascripts/teaspoon/hook.coffee in teaspoon-1.2.0

- old
+ new

@@ -17,6 +17,6 @@ xhr.setRequestHeader("Content-Type", "application/json") xhr.send(JSON.stringify(args: payload)) xhrRequest "#{Teaspoon.suites.active}/#{name}", payload, -> return unless xhr.readyState == 4 - throw("Unable to call hook \"#{url}\".") unless xhr.status == 200 + throw JSON.parse(xhr.response).err