lib/shamu/services/error.rb in shamu-0.0.19 vs lib/shamu/services/error.rb in shamu-0.0.20
- old
+ new
@@ -21,14 +21,16 @@
end
end
class ServiceRequestFailedError < Error
attr_reader :result
+ attr_reader :full_messages
def initialize( result )
@result = result
+ @full_messages = result.errors.full_messages.join( ", " )
- super translate( :service_request_failed, errors: result.errors.full_messages.join( ", " ) )
+ super translate( :service_request_failed, errors: @full_messages )
end
end
end
end