couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jch...@apache.org
Subject svn commit: r733305 - /couchdb/trunk/src/couchdb/couch_httpd_view.erl
Date Sat, 10 Jan 2009 17:53:37 GMT
Author: jchris
Date: Sat Jan 10 09:53:37 2009
New Revision: 733305

URL: http://svn.apache.org/viewvc?rev=733305&view=rev
Log:
include_docs error handling

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_view.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_view.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_view.erl?rev=733305&r1=733304&r2=733305&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_view.erl Sat Jan 10 09:53:37 2009
@@ -433,10 +433,12 @@
             end,
             ?LOG_DEBUG("Include Doc: ~p ~p", [DocId, Rev]),
             case (catch couch_httpd_db:couch_doc_open(Db, DocId, Rev, [])) of
-              {{not_found, missing}, _} ->
-                {[{id, DocId}, {key, Key}, {value, Value}, {error, missing}]};
+              {{not_found, missing}, _RevId} ->
+                  {[{id, DocId}, {key, Key}, {value, Value}, {error, missing}]};
+              {not_found, missing} ->
+                  {[{id, DocId}, {key, Key}, {value, Value}, {error, missing}]};
               {not_found, deleted} ->
-                {[{id, DocId}, {key, Key}, {value, Value}]};
+                  {[{id, DocId}, {key, Key}, {value, Value}]};
               Doc ->
                 JsonDoc = couch_doc:to_json_obj(Doc, []), 
                 {[{id, DocId}, {key, Key}, {value, Value}, {doc, JsonDoc}]}



Mime
View raw message