diff options
author | Azul <azul@leap.se> | 2013-12-17 11:37:37 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-12-17 16:44:58 +0100 |
commit | 95bd5d46095c3552a31cf719adab1c84971b95e8 (patch) | |
tree | 989c1bdfcad61d2ede8668371d438f22e3288064 /core | |
parent | 3d0b0a2b871f08222dc3354afa0747239478d49c (diff) |
catch all rest client exceptions during initialization
Diffstat (limited to 'core')
-rw-r--r-- | core/lib/extensions/couchrest.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/extensions/couchrest.rb b/core/lib/extensions/couchrest.rb index 9f27c3a..a9a195e 100644 --- a/core/lib/extensions/couchrest.rb +++ b/core/lib/extensions/couchrest.rb @@ -29,7 +29,7 @@ module CouchRest def use_database(db) @database = prepare_database(db) - rescue RestClient::Unauthorized, + rescue RestClient::Exception, Errno::EHOSTUNREACH, Errno::ECONNREFUSED => e message = "Could not connect to couch database #{db} due to #{e.to_s}" |