diff options
author | jessib <jessib@riseup.net> | 2013-12-17 10:18:55 -0800 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-12-17 10:18:55 -0800 |
commit | 83cd3d95b78b6df9ac33a8ee169e570f4d3e2eeb (patch) | |
tree | 989c1bdfcad61d2ede8668371d438f22e3288064 /core/lib | |
parent | 3d0b0a2b871f08222dc3354afa0747239478d49c (diff) | |
parent | 95bd5d46095c3552a31cf719adab1c84971b95e8 (diff) |
Merge pull request #125 from azul/feature/catch-all-couch-exceptions
catch all rest client exceptions during initialization
Diffstat (limited to 'core/lib')
-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}" |