commit | aa17ddf3c149a7ac5316e5c821d0d704ac857960 | [log] [tgz] |
---|---|---|
author | Nick Vatamaniuc <vatamane@gmail.com> | Fri Jun 17 14:04:39 2016 -0400 |
committer | Nick Vatamaniuc <vatamane@gmail.com> | Fri Jun 24 12:18:24 2016 -0400 |
tree | fb796f724e8d85d9fc5b8f818d1ed4ef7f340183 | |
parent | da85db2dabe371296c54fded76d1de61289f3319 [diff] |
Emit error row for a null doc id in POSTs to _all_docs This is compatible behavior with CouchDB 1.x Jira: COUCHDB-3039 BugzID: 68486
diff --git a/src/fabric.erl b/src/fabric.erl index ddbcb94..0c7cfa2 100644 --- a/src/fabric.erl +++ b/src/fabric.erl
@@ -466,10 +466,8 @@ docid(DocId) when is_list(DocId) -> list_to_binary(DocId); -docid(DocId) when is_binary(DocId) -> - DocId; docid(DocId) -> - erlang:error({illegal_docid, DocId}). + DocId. docs(Docs) when is_list(Docs) -> [doc(D) || D <- Docs];