summaryrefslogtreecommitdiff
path: root/lib/couch.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/couch.ex')
-rw-r--r--lib/couch.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/couch.ex b/lib/couch.ex
index 2d75314..50b031c 100644
--- a/lib/couch.ex
+++ b/lib/couch.ex
@@ -30,7 +30,7 @@ defmodule Couch do
case HTTPoison.get(url, headers, options) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
{:ok, Poison.decode!(body)}
- error -> {:error, {:couchdb_error, error}}
+ error -> handle_generic_response(error)
end
end