couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r757714 - /couchdb/trunk/src/couchdb/couch_httpd.erl
Date Tue, 24 Mar 2009 10:48:09 GMT
Author: jan
Date: Tue Mar 24 10:48:09 2009
New Revision: 757714

URL: http://svn.apache.org/viewvc?rev=757714&view=rev
Log:
make some error messages more readable, committed for jchris

Modified:
    couchdb/trunk/src/couchdb/couch_httpd.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd.erl?rev=757714&r1=757713&r2=757714&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd.erl Tue Mar 24 10:48:09 2009
@@ -394,6 +394,8 @@
     send_chunk(Resp, []).
 
 
+error_info({Error, Reason}) when is_list(Reason) ->
+    error_info({Error, ?l2b(Reason)});
 error_info(bad_request) ->
     {400, <<"bad_request">>, <<>>};
 error_info({bad_request, Reason}) ->
@@ -440,7 +442,7 @@
         {[{<<"error">>,  ErrorStr},
          {<<"reason">>, ReasonStr}]}).
 
- send_redirect(Req, Path) ->
+send_redirect(Req, Path) ->
      Headers = [{"Location", couch_httpd:absolute_uri(Req, Path)}],
      send_response(Req, 301, Headers, <<>>).
 



Mime
View raw message