summaryrefslogtreecommitdiff
path: root/core/lib
diff options
context:
space:
mode:
Diffstat (limited to 'core/lib')
-rw-r--r--core/lib/extensions/couchrest.rb2
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}"