summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Preston <stuart@chef.io>2018-07-17 16:36:24 +0100
committerStuart Preston <stuart@chef.io>2018-07-17 16:36:24 +0100
commit8fa394155c5305f676adfcd27e864bb82efa62ed (patch)
tree03ef649ae8c137cf6ffb8c5b9de37069d0acab8b
parent1a9681889bf34fbf3b1021b45c69709a077315ab (diff)
downloadchef-8fa394155c5305f676adfcd27e864bb82efa62ed.tar.gz
Ensuring that default constructor calls superclass
Signed-off-by: Stuart Preston <stuart@chef.io>
-rw-r--r--lib/chef/exceptions.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/exceptions.rb b/lib/chef/exceptions.rb
index 28359f82a9..cb82f403e9 100644
--- a/lib/chef/exceptions.rb
+++ b/lib/chef/exceptions.rb
@@ -154,6 +154,9 @@ class Chef
@code = error_code
super(msg)
end
+ def initialize
+ super
+ end
end
# Thrown when Win32 API layer binds to non-existent Win32 function. Occurs