summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-06-15 11:57:08 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-18 14:24:57 -0400
commitc0cb2625f25a2b51485c164bea1d8822f449ce14 (patch)
tree1c115535f3959eb53501c8591eb8eb81aca21a76 /apps
parent3a479c38e5f6d2138795da51a197469b98b006ac (diff)
couch_util:to_binary now catches all errors
Diffstat (limited to 'apps')
-rw-r--r--apps/couch/src/couch_util.erl2
1 files changed, 1 insertions, 1 deletions
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) ->