From c0cb2625f25a2b51485c164bea1d8822f449ce14 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 15 Jun 2010 11:57:08 -0400 Subject: couch_util:to_binary now catches all errors --- apps/couch/src/couch_util.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/couch/src/couch_util.erl') diff --git a/apps/couch/src/couch_util.erl b/apps/couch/src/couch_util.erl index 8217a268..3a6e92c5 100644 --- a/apps/couch/src/couch_util.erl +++ b/apps/couch/src/couch_util.erl @@ -328,7 +328,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) -> -- cgit v1.2.3