lib/apidiesel/request.rb in apidiesel-0.13 vs lib/apidiesel/request.rb in apidiesel-0.14

- old
+ new

@@ -23,10 +23,11 @@ # Reraise ResponseErrors to include ourselves. Not # pretty, but I can't think of anything nicer right now begin @result = action.process_response(response_body) rescue ResponseError => e - raise ResponseError.new(e.message, self) + e.request = self + raise e end end def to_s [