Skip to content

Commit 612874c

Browse files
Fix missing validation_error: Response#validate_structure was raising Exception instead of ValidationError
1 parent 7e48d8f commit 612874c

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)