anchor.diff:                      end_json_response(Resp);
                   true ->
                       send_docs_multipart(Req, Results, Options)
  -                end
  +                end;
  +            {error, Error} ->
  +                chttpd:send_error(Req, Error)
           end
       end;
   
  
positive.code:         Doc = couch_doc_from_req(Req, DocId, Json);
      false ->
          Rev = couch_doc:parse_rev(list_to_binary(couch_util:get_value("_rev", Form))),
          {ok, [{ok, Doc}]} = fabric:open_revs(Db, DocId, [Rev], [])
      end,
      UpdatedAtts = [
          couch_att:new([
  
negative.code:          Error ->
               throw(Error)
           end;
      _ -> % open a specific rev (deletions come back as stubs)
          case fabric:open_revs(Db, DocId, [Rev], Options) of
          {ok, [{ok, Doc}]} ->
              Doc;
          {ok, [{{not_found, missing}, Rev}]} ->
              throw(not_found);
          {ok, [Else]} ->
              throw(Else);
          {error, Error} ->
              throw(Error)
        end
    end.
  
  