Permalink
Browse files

changed stderr to stdout since skipping the progress bar should not b…

…e reported as an error
  • Loading branch information...
1 parent 55aa0eb commit d10f90ef619c32a8da153e09e578152deabc0c77 @mgornick committed Dec 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 sunspot_rails/lib/sunspot/rails/tasks.rb
@@ -44,7 +44,7 @@
total_documents = sunspot_models.map { | m | m.count }.sum
reindex_options[:progress_bar] = ProgressBar.new(total_documents)
rescue LoadError => e
- $stderr.puts "Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile"
+ $stdout.puts "Skipping progress bar: for progress reporting, add gem 'progress_bar' to your Gemfile"
rescue Exception => e
$stderr.puts "Error using progress bar: #{e.message}"
end

0 comments on commit d10f90e

Please sign in to comment.