Permalink
Browse files

Catch new PG::Error exception

  • Loading branch information...
1 parent 27be93c commit ab9e3f3b67ee128187af8af4002a999088ea156b @tompesman committed Mar 12, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/push/daemon/database_reconnectable.rb
@@ -3,6 +3,7 @@ module Daemon
module DatabaseReconnectable
def adaptor_errors
errors = [ActiveRecord::StatementInvalid, ActiveRecord::ConnectionNotEstablished]
+ errors << PG::Error if defined?(PG::Error)
errors << PGError if defined?(PGError)
errors << Mysql2::Error if defined?(Mysql2)
errors

0 comments on commit ab9e3f3

Please sign in to comment.