From 9fe1f6870cfd12c34eb4efef8f4e199e8324c1af Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Sun, 19 Feb 2012 16:03:10 +0000 Subject: task handling fixed for http codes > 202 --- lib/error.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/error.rb') diff --git a/lib/error.rb b/lib/error.rb index b92f2a4..64cc4eb 100644 --- a/lib/error.rb +++ b/lib/error.rb @@ -1,4 +1,3 @@ - # adding additional fields to Exception class to format errors according to OT-API class Exception attr_accessor :errorCause @@ -50,7 +49,7 @@ module OpenTox # @param [String] actor, URI of the call that cause the error def self.create( error, actor ) rest_params = error.rest_params if error.is_a?(OpenTox::RestCallError) and error.rest_params - backtrace = error.backtrace.short_backtrace if CONFIG[:backtrace] + backtrace = error.backtrace.short_backtrace #if CONFIG[:backtrace] ErrorReport.new( error.http_code, error.class.to_s, error.message, actor, error.errorCause, rest_params, backtrace ) end -- cgit v1.2.3