Skip to content

Commit

Permalink
Include code description in the output of failed controls
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop committed Sep 19, 2016
1 parent 303cb08 commit b5a6dd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/inspec/rspec_json_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,11 @@ def print_results(all)
test_color = @colors[test_status]
indicator = @indicators[x[:status]]
indicator = @indicators['empty'] if indicator.nil?
msg = x[:message] || x[:skip_message] || x[:code_desc]
if x[:message]
msg = x[:code_desc] + "\n" + x[:message]
else
msg = x[:skip_message] || x[:code_desc]
end
print_line(
color: test_color,
indicator: @indicators['small'] + indicator,
Expand Down

0 comments on commit b5a6dd6

Please sign in to comment.