couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r965434 - /couchdb/trunk/src/couchdb/couch_doc.erl
Date Mon, 19 Jul 2010 11:32:46 GMT
Author: fdmanana
Date: Mon Jul 19 11:32:46 2010
New Revision: 965434

URL: http://svn.apache.org/viewvc?rev=965434&view=rev
Log:
Fix possible bad match error - WriteFun might not return the atom 'ok'.

Modified:
    couchdb/trunk/src/couchdb/couch_doc.erl

Modified: couchdb/trunk/src/couchdb/couch_doc.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_doc.erl?rev=965434&r1=965433&r2=965434&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_doc.erl (original)
+++ couchdb/trunk/src/couchdb/couch_doc.erl Mon Jul 19 11:32:46 2010
@@ -437,7 +437,7 @@ atts_to_mp([Att | RestAtts], Boundary, W
     true ->
         fun att_foldl/3
     end,
-    AttFun(Att, fun(Data, ok) -> WriteFun(Data) end, ok),
+    AttFun(Att, fun(Data, _) -> WriteFun(Data) end, ok),
     WriteFun(<<"\r\n--", Boundary/binary>>),
     atts_to_mp(RestAtts, Boundary, WriteFun, SendEncodedAtts).
 



Mime
View raw message