couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beno...@apache.org
Subject [16/50] couch commit: updated refs/remotes/origin/import to 09c6556
Date Mon, 10 Feb 2014 20:05:16 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/1d952f01
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/1d952f01
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/1d952f01

Branch: refs/remotes/origin/import
Commit: 1d952f01741240edf6935f10e73a4d5657f4e829
Parents: af1f7e9
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: Tue Feb 4 17:03:24 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/1d952f01/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