lib/rest_model/key/property/sender.rb in rest_model-0.1.8 vs lib/rest_model/key/property/sender.rb in rest_model-0.1.9

- old
+ new

@@ -3,11 +3,11 @@ module Sender def to_source!(value, resource, options = {}) source_value = begin translation.translates_to_source? ? translation.translate_to_source(value, resource) : serializer.desserialize(value) - rescue TranslationError, SerializationError - raise exception if options[:fail] + rescue TranslationError, SerializationError => error + raise error if options[:fail] end source = {} path = source_path