Skip to content

Commit

Permalink
Merge pull request rsolr#78 from PofMagicfingers/master
Browse files Browse the repository at this point in the history
Fixed RSolr::Error to_s
  • Loading branch information
mwmitchell committed Mar 30, 2014
2 parents e09ce8d + f8575ac commit 6c64406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rsolr/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ def to_s
m << "\nError: #{details}\n" if details
end
p = "\nURI: #{request[:uri].to_s}"
p = "\nRequest Headers: #{request[:headers].inspect}" if request[:headers]
p = "\nRequest Data: #{request[:data].inspect}" if request[:data]
p << "\nRequest Headers: #{request[:headers].inspect}" if request[:headers]
p << "\nRequest Data: #{request[:data].inspect}" if request[:data]
p << "\n"
p << "\nBacktrace: " + self.backtrace[0..10].join("\n")
m << p
Expand Down

0 comments on commit 6c64406

Please sign in to comment.