summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-01-19 13:07:48 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-01-19 13:07:48 -0800
commita9242f3b64fca6195e31ff4f5ed1e10e7ba48137 (patch)
treec1118a432dfce66751e1516f8e8ad5c265949111 /lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
parent600f83f177370adbd916666190989054d6fae1f0 (diff)
downloadchef-a9242f3b64fca6195e31ff4f5ed1e10e7ba48137.tar.gz
adds EOFError message to handlers
i think this still misses the biggest EOFError culprit which is the node.save at the end, but we don't seem to have a node_save_failed event to hook.
Diffstat (limited to 'lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb')
-rw-r--r--lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb b/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
index 30811a6d24..5e4fc0fff1 100644
--- a/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
+++ b/lib/chef/formatters/error_inspectors/cookbook_sync_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");
@@ -45,6 +45,8 @@ class Chef
describe_network_errors(error_description)
when Net::HTTPServerException, Net::HTTPFatalError
humanize_http_exception(error_description)
+ when EOFError
+ describe_eof_error(error_description)
else
error_description.section("Unexpected Error:","#{exception.class.name}: #{exception.message}")
end