couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1078318 - /couchdb/branches/1.0.x/src/couchdb/couch_util.erl
Date Sat, 05 Mar 2011 17:55:09 GMT
Author: fdmanana
Date: Sat Mar  5 17:55:09 2011
New Revision: 1078318

URL: http://svn.apache.org/viewvc?rev=1078318&view=rev
Log:
Merged revision 1076368 from trunk

    Catch all in couch_util:to_binary/1 list argument clause
    
    When a list_to_binary call fails, the error tag is 'error' and not 'throw'.
    This was noticed when this clause was being hit in an error clause of the
    replication http handler (couch_httpd_replicator.erl).


Modified:
    couchdb/branches/1.0.x/src/couchdb/couch_util.erl

Modified: couchdb/branches/1.0.x/src/couchdb/couch_util.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/src/couchdb/couch_util.erl?rev=1078318&r1=1078317&r2=1078318&view=diff
==============================================================================
--- couchdb/branches/1.0.x/src/couchdb/couch_util.erl (original)
+++ couchdb/branches/1.0.x/src/couchdb/couch_util.erl Sat Mar  5 17:55:09 2011
@@ -329,7 +329,7 @@ to_binary(V) when is_list(V) ->
     try
         list_to_binary(V)
     catch
-        _ ->
+        _:_ ->
             list_to_binary(io_lib:format("~p", [V]))
     end;
 to_binary(V) when is_atom(V) ->



Mime
View raw message