From bb3d3e37305161ae4754489c7f5d3cc42ac0823b Mon Sep 17 00:00:00 2001 From: Mohnish G J Date: Sat, 20 Aug 2016 12:22:53 +0530 Subject: [PATCH] Rescue from Standard Error instead of rescuing from Exception For details as to why rescuing from Standard Error is preferable when compared to rescuing from Exception one can read - 1. http://stackoverflow.com/a/10048406/272398 2. https://robots.thoughtbot.com/rescue-standarderror-not-exception --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index f89c122d2..cb9060ab3 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -19,7 +19,7 @@ end puts "..done!" - rescue Exception => e + rescue => e puts e.inspect puts "Something went wrong. Try running `bundle exec rake db:drop db:create db:migrate` first" end