summaryrefslogtreecommitdiff
path: root/lib/chef/exceptions.rb
diff options
context:
space:
mode:
authorVivek Singh <vivek.singh@msystechnologies.com>2020-04-06 22:14:39 +0530
committerVivek Singh <vivek.singh@msystechnologies.com>2020-04-06 22:46:26 +0530
commita1bf06c753173ac698d9329a09c6edba6c18c781 (patch)
treedcc0cfe7d4c533fc1d73d1cbd01dbf1decc202ef /lib/chef/exceptions.rb
parentbd19ff3749e935524a512667f41bb4fe5667be01 (diff)
downloadchef-a1bf06c753173ac698d9329a09c6edba6c18c781.tar.gz
Fix typo
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'lib/chef/exceptions.rb')
-rw-r--r--lib/chef/exceptions.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index d1317cec69..e2c1dffe77 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -259,7 +259,7 @@ class Chef
class ChildConvergeError < RuntimeError; end
class DeprecatedFeatureError < RuntimeError
- def initalize(message)
+ def initialize(message)
super("#{message} (raising error due to treat_deprecation_warnings_as_errors being set)")
end
end
@@ -413,7 +413,7 @@ class Chef
end
# Raised when Chef::Config[:run_lock_timeout] is set and some other client run fails
- # to release the run lock becure Chef::Config[:run_lock_timeout] seconds pass.
+ # to release the run lock before Chef::Config[:run_lock_timeout] seconds pass.
class RunLockTimeout < RuntimeError
def initialize(duration, blocking_pid)
super "Unable to acquire lock. Waited #{duration} seconds for #{blocking_pid} to release."