Permalink
Browse files

Remove the backtrace from the warning.

  • Loading branch information...
1 parent 9637ad8 commit e44522262804031c03cc074f2e344114c7c32587 @myronmarston committed Jul 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/factory_data_preloader/preloaded_data_hash.rb
@@ -23,7 +23,7 @@ def add(key)
begin
add_to_backing_hash(key, yield)
rescue => e
- puts "WARNING: an error occurred while preloading the #{preloader.model_type.to_s}(:#{key}) record: #{e.class.to_s}: #{e.message}\n\nBacktrace: \n#{e.backtrace}\n\n"
+ puts "WARNING: an error occurred while preloading the #{preloader.model_type.to_s}(:#{key}) record: #{e.class.to_s}: #{e.message}"
add_to_backing_hash(key, nil, e)
end
end

0 comments on commit e445222

Please sign in to comment.