summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/formatters/error_inspectors/node_load_error_inspector.rb')
-rw-r--r--lib/chef/formatters/error_inspectors/node_load_error_inspector.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb b/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb
index 6371243624..0212217d01 100644
--- a/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb
+++ b/lib/chef/formatters/error_inspectors/node_load_error_inspector.rb
@@ -1,6 +1,6 @@
#--
# Author:: Daniel DeLeo (<dan@opscode.com>)
-# Copyright:: Copyright (c) 2012 Opscode, Inc.
+# Copyright:: Copyright (c) 2012-2016 Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -53,6 +53,8 @@ E
error_description.section("Relevant Config Settings:",<<-E)
client_key "#{api_key}"
E
+ when EOFError
+ describe_eof_error(error_description)
else
error_description.section("Unexpected Error:","#{exception.class.name}: #{exception.message}")
end