lib/railties/blacklight.rake in blacklight-8.0.0 vs lib/railties/blacklight.rake in blacklight-8.0.1
- old
+ new
@@ -38,11 +38,11 @@
else
puts "Unable to reach: #{conn.uri}"
exit 1
end
rescue => e
- puts e.to_s
+ puts e
exit 1
end
task :controller, [:controller_name] => [:environment] do |_, args|
errors = 0
@@ -68,11 +68,11 @@
puts "\tdoc count: #{response.docs.length}"
puts "\tfacet fields: #{response.facets.length}"
end
rescue => e
errors += 1
- puts e.to_s
+ puts e
end
print " - search_results: "
begin
@@ -90,11 +90,11 @@
puts "\tdoc count: #{docs.length}"
puts "\tfacet fields: #{response.facets.length}"
end
rescue => e
errors += 1
- puts e.to_s
+ puts e
end
print " - fetch: "
begin
@@ -110,10 +110,10 @@
if verbose
puts "\tstatus: #{response.header['status']}"
end
rescue => e
errors += 1
- puts e.to_s
+ puts e
end
exit 1 if errors > 0
end
end