1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-27 03:21:29 +03:00

Bug #4057: Show regexp in validator error

This commit is contained in:
Carlos Martín 2015-10-19 12:21:31 +02:00
parent 3677eda777
commit e24f645a5c

View File

@ -491,7 +491,7 @@ class Validator
if schema_string[:regex] =~ body_value
body_value
else
raise ParseException, "KEY: '#{schema_key}' malformed;"
raise ParseException, "KEY: '#{schema_key}' must match regexp #{schema_string[:regex].inspect};"
end
end
end