From 96c905617da651746abd6c90a1727eeffd3dc485 Mon Sep 17 00:00:00 2001 From: Jordan Bracco Date: Sun, 11 Dec 2022 01:57:54 +0000 Subject: fix(couch): fix error handling in get/2,3 --- lib/couch.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/couch.ex') 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 -- cgit v1.2.3