summaryrefslogtreecommitdiff
path: root/lib/error.rb
diff options
context:
space:
mode:
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