From 2f5ee5a812bee922b198c7efbe3ffff29d072ffd Mon Sep 17 00:00:00 2001 From: Kent Sibilev Date: Mon, 11 Dec 2006 21:09:47 +0000 Subject: Ensure that DispatcherError is being thrown correctly when a malformed request is received. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5713 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/lib/action_web_service/dispatcher/abstract.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionwebservice/lib/action_web_service/dispatcher/abstract.rb') diff --git a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb index 9c981e4ec1..cb94d649e7 100644 --- a/actionwebservice/lib/action_web_service/dispatcher/abstract.rb +++ b/actionwebservice/lib/action_web_service/dispatcher/abstract.rb @@ -3,6 +3,10 @@ require 'benchmark' module ActionWebService # :nodoc: module Dispatcher # :nodoc: class DispatcherError < ActionWebService::ActionWebServiceError # :nodoc: + def initialize(*args) + super + set_backtrace(caller) + end end def self.included(base) # :nodoc: -- cgit v1.2.3