Skip to content

Commit bae45bc

Browse files
committed
Merge pull request #56 from patriciomacadden/fix_missing_validation_error
Fix missing validation_error
2 parents c65321f + 612874c commit bae45bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/onelogin/ruby-saml/response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def validate_structure(soft = true)
126126
if soft
127127
@schema.validate(@xml).map{ return false }
128128
else
129-
@schema.validate(@xml).map{ |error| raise(Exception.new("#{error.message}\n\n#{@xml.to_s}")) }
129+
@schema.validate(@xml).map{ |error| validation_error("#{error.message}\n\n#{@xml.to_s}") }
130130
end
131131
end
132132

0 commit comments

Comments
 (0)