couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [20/50] git commit: Switch to using is_binary guard
Date Sat, 18 Jan 2014 00:47:45 GMT
Switch to using is_binary guard


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/e12794a3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e12794a3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/e12794a3

Branch: refs/heads/import
Commit: e12794a3804b43679167f39d7c05ca22b085cf2c
Parents: 8eb2636
Author: Russell Branca <chewbranca@gmail.com>
Authored: Wed Jan 23 14:14:21 2013 -0800
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Fri Jan 17 16:44:30 2014 -0800

----------------------------------------------------------------------
 src/couch_query_servers.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/e12794a3/src/couch_query_servers.erl
----------------------------------------------------------------------
diff --git a/src/couch_query_servers.erl b/src/couch_query_servers.erl
index 5864288..b32ed06 100644
--- a/src/couch_query_servers.erl
+++ b/src/couch_query_servers.erl
@@ -328,7 +328,7 @@ validate_doc_update(DDoc, EditDoc, DiskDoc, Ctx, SecObj) ->
             throw({forbidden, Message});
         {[{<<"unauthorized">>, Message}]} ->
             throw({unauthorized, Message});
-        <<Message/binary>> ->
+        Message when is_binary(Message) ->
             throw({unknown_error, Message})
     end.
 


Mime
View raw message