Skip to content

Commit b878500

Browse files
committed
updates based on comments from drbrain
1 parent 21130fe commit b878500

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/rake/testtask.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,14 @@ def define
118118
elsif !ok
119119
status = "Command failed with status (#{status.exitstatus})"
120120
details = ": [ruby #{args}]"
121-
fail (ARGV.include?('--trace') || @verbose) ? (status + details) : status
121+
message =
122+
if Rake.application.options.trace or @verbose then
123+
status + details
124+
else
125+
status
126+
end
127+
128+
fail message
122129
end
123130
end
124131
end

0 commit comments

Comments
 (0)