Permalink
Browse files

add not_found error to validate_doc_read function

  • Loading branch information...
1 parent 81ec038 commit f19db76c4210263142381b9a2b48bbddd33ad6e9 @benoitc benoitc committed Aug 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 apps/couch/src/couch_db.erl
@@ -1391,6 +1391,8 @@ validate_doc_read(Db, Doc) ->
throw(Error);
throw:{unauthorized, _}=Error ->
throw(Error);
+ throw:{not_found, _}=Error ->
+ throw(Error);
throw:Error ->
lager:error("Error while validating read: ~p~n", [Error]),
ok

0 comments on commit f19db76

Please sign in to comment.