Author: davisp
Date: Sat Apr 18 16:34:33 2009
New Revision: 766353

URL: http://svn.apache.org/viewvc?rev=766353&view=rev
Log:
Fixes COUCHDB-311

Returns an _external error as a binary.


Modified:
    couchdb/trunk/THANKS
    couchdb/trunk/src/couchdb/couch_external_manager.erl

Modified: couchdb/trunk/THANKS
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/THANKS?rev=766353&r1=766352&r2=766353&view=diff
==============================================================================
--- couchdb/trunk/THANKS (original)
+++ couchdb/trunk/THANKS Sat Apr 18 16:34:33 2009
@@ -25,5 +25,6 @@
  * Eric Casteleijn <eric.castele...@canonical.com>
  * Maarten Thibaut <mthib...@cisco.com>
  * Florian Ebeling <florian.ebel...@gmail.com>
+ * Volker Mische <volker.mis...@gmail.com>
 
 For a list of authors see the `AUTHORS` file.

Modified: couchdb/trunk/src/couchdb/couch_external_manager.erl
URL: 
http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_external_manager.erl?rev=766353&r1=766352&r2=766353&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_external_manager.erl (original)
+++ couchdb/trunk/src/couchdb/couch_external_manager.erl Sat Apr 18 16:34:33 
2009
@@ -53,9 +53,9 @@
     [] ->
         case couch_config:get("external", UrlName, nil) of
         nil ->
-            Mesg = lists:flatten(
+            Msg = lists:flatten(
                 io_lib:format("No server configured for ~p.", [UrlName])),
-            {reply, {error, {unknown_external_server, Mesg}}, Handlers};
+            {reply, {error, {unknown_external_server, ?l2b(Msg)}}, Handlers};
         Command ->
             {ok, NewPid} = couch_external_server:start_link(UrlName, Command),
             true = ets:insert(Handlers, {UrlName, NewPid}),


Reply via email to