Permalink
Browse files

decided that 409s on attachments have to be handled outside of addAtt…

…achment
  • Loading branch information...
2 parents d800405 + 314e262 commit d0ae4adc1763d77521111a6898961f4ef14db3b7 Martin Murphy committed Oct 22, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/couchdb/database.js
@@ -290,10 +290,10 @@ Database = {
dataType: "json",
success: function(data, textStatus) {
status = textStatus;
- if (!data.ok) {
- return;
+ if (!data.ok) {
+ response = false;
+ return status;
}
- doc._rev = data.rev;
},
error: function(xhr) {
status = xhr.status;

0 comments on commit d0ae4ad

Please sign in to comment.