lib/usher/node.rb in joshbuddy-usher-0.1.0 vs lib/usher/node.rb in joshbuddy-usher-0.1.1

- old
+ new

@@ -125,10 +125,10 @@ when Proc part = t.call(part) when Symbol part = part.send(t) end - raise "#{part} does not conform to #{next_part.value.validator}" if next_part.value.validator && (not next_part.value.validator === part) + raise ValidationException.new("#{part} does not conform to #{next_part.value.validator}") if next_part.value.validator && (not next_part.value.validator === part) case next_part.value.type when :* params << [next_part.value.name, []] params.last.last << part when :':'