summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-12-07 11:47:18 -0800
committerTim Smith <tsmith@chef.io>2017-12-07 13:27:30 -0800
commit6cf225b7e4b9e3cb788e3998d4c54f32e55ea9df (patch)
tree2413c43d39359870c8d824cd951ad99f9d700ac9 /lib/chef/resource
parent6ad0ac95c33969a16b79fd32cd987fe68c150266 (diff)
downloadchef-6cf225b7e4b9e3cb788e3998d4c54f32e55ea9df.tar.gz
Improve the integer/string warning message
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/windows_task.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/windows_task.rb b/lib/chef/resource/windows_task.rb
index 7e9025aea1..9fd7db7f53 100644
--- a/lib/chef/resource/windows_task.rb
+++ b/lib/chef/resource/windows_task.rb
@@ -72,7 +72,7 @@ class Chef
if execution_time_limit
unless execution_time_limit == "PT72H" # don't double convert an iso08601 format duration
- raise ArgumentError, "Invalid value passed for `execution_time_limit`. Please pass seconds an Integer or a String with numeric values only e.g. '60'." unless numeric_value_in_string?(execution_time_limit)
+ raise ArgumentError, "Invalid value passed for `execution_time_limit`. Please pass seconds as an Integer (e.g. 60) or a String with numeric values only (e.g. '60')." unless numeric_value_in_string?(execution_time_limit)
duration = sec_to_dur(execution_time_limit)
execution_time_limit(duration)
end
@@ -101,7 +101,7 @@ class Chef
raise ArgumentError, "`random_delay` property is supported only for frequency :minute, :hourly, :daily, :weekly and :monthly"
end
- raise ArgumentError, "Invalid value passed for `random_delay`. Please pass seconds an Integer or a String with numeric values only e.g. '60'." unless numeric_value_in_string?(random_delay)
+ raise ArgumentError, "Invalid value passed for `random_delay`. Please pass seconds as an Integer (e.g. 60) or a String with numeric values only (e.g. '60')." unless numeric_value_in_string?(random_delay)
end
def validate_start_day(start_day, frequency)