Skip to content

Commit

Permalink
Merge pull request #56 from patriciomacadden/fix_missing_validation_e…
Browse files Browse the repository at this point in the history
…rror

Fix missing validation_error
  • Loading branch information
stouset committed Dec 7, 2012
2 parents c65321f + 612874c commit bae45bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/response.rb
Expand Up @@ -126,7 +126,7 @@ def validate_structure(soft = true)
if soft
@schema.validate(@xml).map{ return false }
else
@schema.validate(@xml).map{ |error| raise(Exception.new("#{error.message}\n\n#{@xml.to_s}")) }
@schema.validate(@xml).map{ |error| validation_error("#{error.message}\n\n#{@xml.to_s}") }
end
end

Expand Down

0 comments on commit bae45bc

Please sign in to comment.