summaryrefslogtreecommitdiff
path: root/lib/chef/mixin
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-10-10 15:24:06 -0700
committerTim Smith <tsmith@chef.io>2018-10-11 14:38:55 -0700
commitc29d12950e556f8e99efc03542d245606d5e7e1c (patch)
tree2aec27c47a86237e5de4f0599598a9fdd245661b /lib/chef/mixin
parent0c8f73047924ef49dc7b7bccdfb3325b15219d19 (diff)
downloadchef-c29d12950e556f8e99efc03542d245606d5e7e1c.tar.gz
When a property regex fails don't call it an optionbetter_regex_error
These aren't options. These are properties. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r--lib/chef/mixin/params_validate.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/params_validate.rb b/lib/chef/mixin/params_validate.rb
index f77adecd60..49e6914245 100644
--- a/lib/chef/mixin/params_validate.rb
+++ b/lib/chef/mixin/params_validate.rb
@@ -300,7 +300,7 @@ class Chef
Array(regex).flatten.each do |r|
return true if r.match(value.to_s)
end
- raise Exceptions::ValidationFailed, _validation_message(key, "Option #{key}'s value #{value} does not match regular expression #{regex.inspect}")
+ raise Exceptions::ValidationFailed, _validation_message(key, "Property #{key}'s value #{value} does not match regular expression #{regex.inspect}")
end
end