Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

handle nil objects in the output strings so the correct stack trace can be shown #158

Merged
merged 1 commit into from

2 participants

@MingStar

Some gem (thrift 0.08) returns nil objects for the output strings, and cause stack trace incorrectly showing errors in rake.

@jimweirich jimweirich merged commit 6dbb8cd into jimweirich:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 19, 2012
  1. @MingStar
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rake/trace_output.rb
View
2  lib/rake/trace_output.rb
@@ -11,7 +11,7 @@ def trace_on(out, *strings)
if strings.empty?
output = sep
else
- output = strings.map { |s| s.end_with?(sep) ? s : s + sep }.join
+ output = strings.map { |s| s.nil? || s.end_with?(sep) ? s : s + sep }.join
end
out.print(output)
end
Something went wrong with that request. Please try again.