summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/error_inspectors/api_error_formatting.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/formatters/error_inspectors/api_error_formatting.rb')
-rw-r--r--lib/chef/formatters/error_inspectors/api_error_formatting.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/formatters/error_inspectors/api_error_formatting.rb b/lib/chef/formatters/error_inspectors/api_error_formatting.rb
index 05ee3132a7..5f2a912a01 100644
--- a/lib/chef/formatters/error_inspectors/api_error_formatting.rb
+++ b/lib/chef/formatters/error_inspectors/api_error_formatting.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require 'chef/http/authenticator'
+require "chef/http/authenticator"
class Chef
module Formatters
@@ -106,7 +106,7 @@ E
# Parses JSON from the error response sent by Chef Server and returns the
# error message
def format_rest_error
- Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join('; ')
+ Array(Chef::JSONCompat.from_json(exception.response.body)["error"]).join("; ")
rescue Exception
safe_format_rest_error
end