lib/resync/xml.rb in resync-0.4.4 vs lib/resync/xml.rb in resync-0.4.5

- old
+ new

@@ -35,10 +35,10 @@ when REXML::Document xml.root when REXML::Element xml else - fail ArgumentError, "Unexpected argument type; expected XML document, String, or IO source, was #{xml.class}" unless can_parse(xml) + raise ArgumentError, "Unexpected argument type; expected XML document, String, or IO source, was #{xml.class}" unless can_parse(xml) REXML::Document.new(xml).root end end # ------------------------------------------------------------