Skip to content

Commit

Permalink
addressing review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalakannan-chockalingam committed Apr 16, 2024
1 parent db7dd69 commit 36b01cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions allure-ruby-commons/lib/allure_ruby_commons/result_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def status(exception)
# @param [Exception] exception
# @return [Allure::StatusDetails]
def status_details(exception)
message = exception&.message.nil? ? exception.class.name : exception.message
StatusDetails.new(message: message, trace: exception&.backtrace&.join("\n"))
StatusDetails.new(message: exception&.message || exception.class.name, trace: exception&.backtrace&.join("\n"))
end

# Allure attachment object
Expand Down

0 comments on commit 36b01cb

Please sign in to comment.