diff options
author | Adam Kocoloski <adam@cloudant.com> | 2010-07-16 18:32:32 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-07-26 20:55:42 -0400 |
commit | ba55fe683f7e8d8432cc11b17c7af2e7ee46105f (patch) | |
tree | f460d058f30f37d219939d114c0f5293560a2cae | |
parent | a3853280ae617e21817a5097c431f1e62d3dbd47 (diff) |
nicer error messages for missing attachment stubs
-rw-r--r-- | src/fabric_doc_update.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl index 0898d96c..5c4cb132 100644 --- a/src/fabric_doc_update.erl +++ b/src/fabric_doc_update.erl @@ -50,6 +50,8 @@ handle_message({ok, Replies}, Worker, Acc0) -> % no point in trying to finalize anything yet {ok, {WaitingCount - 1, DocCount, W, GroupedDocs, DocReplyDict}} end; +handle_message({missing_stub, Stub}, _, _) -> + throw({missing_stub, Stub}); handle_message({not_found, no_db_file} = X, Worker, Acc0) -> {_, _, _, GroupedDocs, _} = Acc0, Docs = couch_util:get_value(Worker, GroupedDocs), |