mirror of
https://github.com/inspec/inspec
synced 2024-11-25 22:20:27 +00:00
Logging stderr backtrace coming from inspec exec
Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
parent
8912f1a71a
commit
6a0a9666b9
1 changed files with 2 additions and 0 deletions
|
@ -366,8 +366,10 @@ class Inspec::InspecCLI < Inspec::BaseCLI
|
||||||
ui.exit runner.run
|
ui.exit runner.run
|
||||||
rescue ArgumentError, RuntimeError, Train::UserError => e
|
rescue ArgumentError, RuntimeError, Train::UserError => e
|
||||||
$stderr.puts e.message
|
$stderr.puts e.message
|
||||||
|
$stderr.puts e.backtrace
|
||||||
ui.exit Inspec::UI::EXIT_USAGE_ERROR
|
ui.exit Inspec::UI::EXIT_USAGE_ERROR
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
$stderr.puts e.backtrace
|
||||||
pretty_handle_exception(e)
|
pretty_handle_exception(e)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue