From b533958ae644fa63481c858140971752f5f94c2d Mon Sep 17 00:00:00 2001 From: Jerry Aldrich Date: Fri, 22 Feb 2019 10:56:28 -0800 Subject: [PATCH] Remove stacktrace being sent to `exit_with_error` It is already available at the debug log level. Thanks @clintoncwolfe for the suggestion. Signed-off-by: Jerry Aldrich --- .../inspec-habitat/lib/inspec-habitat/profile.rb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb b/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb index d390ccf86..2762742ab 100644 --- a/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb +++ b/lib/plugins/inspec-habitat/lib/inspec-habitat/profile.rb @@ -41,10 +41,7 @@ module InspecPlugins destination rescue => e logger.debug(e.backtrace.join("\n")) - exit_with_error( - 'Unable to create Habitat artifact.', - "#{e.class} -- #{e.message}", - ) + exit_with_error('Unable to create Habitat artifact.') ensure logger.debug("Deleting working directory #{working_dir}") FileUtils.rm_rf(working_dir) @@ -92,10 +89,7 @@ module InspecPlugins upload_hart(hart, habitat_config) rescue => e logger.debug(e.backtrace.join("\n")) - exit_with_error( - 'Unable to upload Habitat artifact.', - "#{e.class} -- #{e.message}", - ) + exit_with_error('Unable to upload Habitat artifact.') end private