summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-01-21 02:31:36 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-01-21 02:31:36 +0000
commita3fec89cdff0deda1c30d15bd0503af2f9b824e2 (patch)
treee75bc10fa5aeeac963e83c2d4911fac7c568cf5e /src/couchdb/couch_httpd.erl
parent06a084d40de16f72b6278a63f4c06c2d2b0c9281 (diff)
don't log thrown errors in http requests, just things like badmatch etc
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@736194 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r--src/couchdb/couch_httpd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index a9c7320a..996bcf49 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -152,6 +152,8 @@ handle_request(MochiReq, UrlHandlers, DbUrlHandlers) ->
try
HandlerFun(HttpReq#httpd{user_ctx=AuthenticationFun(HttpReq)})
catch
+ throw:Error ->
+ send_error(HttpReq, Error);
Tag:Error ->
?LOG_ERROR("Uncaught error in HTTP request: ~p",[{Tag, Error}]),
?LOG_DEBUG("Stacktrace: ~p",[erlang:get_stacktrace()]),