mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
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:
parent
535ecdc4ac
commit
b533958ae6
1 changed files with 2 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue