couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [15/50] [abbrv] git commit: updated refs/heads/1843-feature-bigcouch to cba2e81
Date Sat, 29 Jun 2013 15:17:56 GMT
Switch to using is_binary guard


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

Branch: refs/heads/1843-feature-bigcouch
Commit: 0b0b6f43ceadd5b11822ac5caccfcccbdab822aa
Parents: 4fe37de
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: Wed Mar 20 06:02:52 2013 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/0b0b6f43/src/couch/src/couch_query_servers.erl
----------------------------------------------------------------------
diff --git a/src/couch/src/couch_query_servers.erl b/src/couch/src/couch_query_servers.erl
index 5864288..b32ed06 100644
--- a/src/couch/src/couch_query_servers.erl
+++ b/src/couch/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