summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2020-03-20 13:43:33 +0000
committerRobert Newson <rnewson@apache.org>2020-03-22 23:16:29 +0000
commitdc88e3623f839246028b722dbe3b4235c27dc69e (patch)
treee92b8e75198d992acfbe72b28d8848ff97da59d3
parentc1e7c5ac2c754a342fb5fd7dc6473c1630ce422c (diff)
downloadcouchdb-dc88e3623f839246028b722dbe3b4235c27dc69e.tar.gz
throw Reason directly so we send good http error responses
-rw-r--r--src/couch/src/couch_httpd_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl
index 86d583c56..f5387d18f 100644
--- a/src/couch/src/couch_httpd_auth.erl
+++ b/src/couch/src/couch_httpd_auth.erl
@@ -202,7 +202,7 @@ jwt_authentication_handler(Req) ->
}}
end;
{error, Reason} ->
- throw({unauthorized, Reason})
+ throw(Reason)
end;
_ -> Req
end.