You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/07/22 16:32:11 UTC
svn commit: r966689 - /couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl
Author: jchris
Date: Thu Jul 22 14:32:10 2010
New Revision: 966689
URL: http://svn.apache.org/viewvc?rev=966689&view=rev
Log:
humane error message on missing design handler
Modified:
couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl
Modified: couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl?rev=966689&r1=966688&r2=966689&view=diff
==============================================================================
--- couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl (original)
+++ couchdb/branches/0.11.x/src/couchdb/couch_httpd_db.erl Thu Jul 22 14:32:10 2010
@@ -144,7 +144,9 @@ handle_design_req(#httpd{
% load ddoc
DesignId = <<"_design/", DesignName/binary>>,
DDoc = couch_httpd_db:couch_doc_open(Db, DesignId, nil, []),
- Handler = couch_util:dict_find(Action, DesignUrlHandlers, fun db_req/2),
+ Handler = couch_util:dict_find(Action, DesignUrlHandlers, fun(A,B,C) ->
+ throw({not_found, <<"missing handler: ", Action/binary>>})
+ end),
Handler(Req, Db, DDoc);
handle_design_req(Req, Db) ->