Skip to content

Commit

Permalink
updates based on comments from drbrain
Browse files Browse the repository at this point in the history
  • Loading branch information
bretts committed Sep 20, 2016
1 parent 21130fe commit b878500
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/rake/testtask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,14 @@ def define
elsif !ok
status = "Command failed with status (#{status.exitstatus})"
details = ": [ruby #{args}]"
fail (ARGV.include?('--trace') || @verbose) ? (status + details) : status
message =
if Rake.application.options.trace or @verbose then
status + details
else
status
end

fail message
end
end
end
Expand Down

0 comments on commit b878500

Please sign in to comment.