summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
diff options
context:
space:
mode:
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, 2 insertions, 2 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 b095dcfd70..5ac39d7a83 100644
--- a/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
+++ b/lib/chef/formatters/error_inspectors/cookbook_sync_error_inspector.rb
@@ -41,12 +41,12 @@ class Chef
def add_explanation(error_description)
case exception
- when *NETWORK_ERROR_CLASSES
- describe_network_errors(error_description)
when Net::HTTPServerException, Net::HTTPFatalError
humanize_http_exception(error_description)
when EOFError
describe_eof_error(error_description)
+ when *NETWORK_ERROR_CLASSES
+ describe_network_errors(error_description)
else
error_description.section("Unexpected Error:","#{exception.class.name}: #{exception.message}")
end