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:
parent
3677eda777
commit
e24f645a5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user