From f8575ac14f8662de3bc78ec12db984fabf83fbe2 Mon Sep 17 00:00:00 2001 From: Pof Magicfingers Date: Sun, 30 Mar 2014 15:49:07 +0200 Subject: [PATCH] Fixed RSolr::Error to_s --- lib/rsolr/error.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rsolr/error.rb b/lib/rsolr/error.rb index b49d5729..52b91706 100644 --- a/lib/rsolr/error.rb +++ b/lib/rsolr/error.rb @@ -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