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 <jerryaldrichiii@gmail.com>
This commit is contained in:
Jerry Aldrich 2019-02-22 10:56:28 -08:00
parent 535ecdc4ac
commit b533958ae6

View file

@ -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