Permalink
Browse files

Fixes COUCHDB-311

Returns an _external error as a binary.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766353 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 5442bdb commit 6adbab8f3fadda652844c8db7ca30d382ad0fa5a @davisp davisp committed Apr 18, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −0 THANKS
  2. +2 −2 src/couchdb/couch_external_manager.erl
View
1 THANKS
@@ -25,5 +25,6 @@ suggesting improvements or submitting changes. Some of these people are:
* Eric Casteleijn <eric.casteleijn@canonical.com>
* Maarten Thibaut <mthibaut@cisco.com>
* Florian Ebeling <florian.ebeling@gmail.com>
+ * Volker Mische <volker.mische@gmail.com>
For a list of authors see the `AUTHORS` file.
@@ -53,9 +53,9 @@ handle_call({get, UrlName}, _From, Handlers) ->
[] ->
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}),

0 comments on commit 6adbab8

Please sign in to comment.