diff options
Diffstat (limited to 'lib/chef/util/file_edit.rb')
-rw-r--r-- | lib/chef/util/file_edit.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/util/file_edit.rb b/lib/chef/util/file_edit.rb index 50e4f3de33..f4a3cde540 100644 --- a/lib/chef/util/file_edit.rb +++ b/lib/chef/util/file_edit.rb @@ -29,6 +29,7 @@ class Chef public def initialize(filepath) + raise ArgumentError, "File '#{filepath}' does not exist" unless File.exist?(filepath) @editor = Editor.new(File.open(filepath, &:readlines)) @original_pathname = filepath end |