summaryrefslogtreecommitdiff
path: root/lib/error.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-02-19 16:03:10 +0000
committerChristoph Helma <helma@in-silico.ch>2012-02-19 16:03:10 +0000
commit9fe1f6870cfd12c34eb4efef8f4e199e8324c1af (patch)
treed90a822695d9bde85ae5cc71fa8283c8b891865d /lib/error.rb
parent0600fdc62e7446caa75ffcff4d097338818e0df9 (diff)
task handling fixed for http codes > 202
Diffstat (limited to 'lib/error.rb')
-rw-r--r--lib/error.rb3
1 files changed, 1 insertions, 2 deletions
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