incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lalancette <clala...@redhat.com>
Subject [PATCH] Add 'details' to the accessors for DeltacloudException.
Date Tue, 07 Jun 2011 20:40:01 GMT
Otherwise the exception views (like 502.xml.haml) throw
errors when trying to access it.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
---
 server/lib/deltacloud/base_driver/exceptions.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/lib/deltacloud/base_driver/exceptions.rb b/server/lib/deltacloud/base_driver/exceptions.rb
index 8b8875a..de9223e 100644
--- a/server/lib/deltacloud/base_driver/exceptions.rb
+++ b/server/lib/deltacloud/base_driver/exceptions.rb
@@ -3,7 +3,7 @@ module Deltacloud
 
     class DeltacloudException < StandardError
 
-      attr_accessor :code, :name, :message, :backtrace, :request
+      attr_accessor :code, :name, :message, :backtrace, :request, :details
 
       def initialize(code, name, message, backtrace, details, request=nil)
         @code, @name, @message = code, name, message
-- 
1.7.4.4


Mime
View raw message