couchdb-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1078317&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.1.x/src/couchdb/couch_util.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_util.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_util.erl?rev=1078317&r1=1078316&r2=1078317&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_util.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_util.erl Sat Mar  5 17:54:22 2011
@@ -340,7 +340,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